﻿:root {
    --builder-navy: #0b213f;
    --builder-navy-light: #102c52;
    --builder-gold: #d3ad67;
    --builder-gold-light: #ead4a7;
    --builder-cream: #f7f3ed;
    --builder-border: #dfd4c5;
    --builder-text: #192b43;
    --builder-muted: #83796e;
    --builder-white: #ffffff;
}

.ghaya-builder-page {
    min-height: 100vh;
    padding: 28px 0 65px;
    background: radial-gradient( circle at 50% 0, rgba(211, 173, 103, .09), transparent 32% ), var(--builder-cream);
}

.ghaya-builder-container {
    width: min(1460px, calc(100% - 36px));
    margin: 0 auto;
}

.ghaya-builder-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.ghaya-builder-title {
    margin: 0 0 7px;
    color: var(--builder-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: .3px;
}

.ghaya-builder-subtitle {
    margin: 0;
    color: #796f65;
    font-size: 14px;
    line-height: 1.7;
}

.builder-desktop-layout {
    display: grid;
    grid-template-columns: minmax(330px, 370px) minmax(470px, 1fr) minmax(330px, 370px);
    gap: 18px;
    align-items: start;
}

.builder-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 720px;
    min-width: 0;
}

    .builder-side-column .builder-level-panel {
        flex: 1 1 0;
        min-height: 0;
    }

        .builder-side-column .builder-level-panel:only-child {
            flex: 1 1 100%;
        }

.builder-level-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(222, 211, 195, .92);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(11, 33, 63, .055), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.builder-level-header {
    flex: 0 0 auto;
    padding: 16px 17px 13px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
    border-bottom: 1px solid #eee5da;
}

.builder-level-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin-right: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: var(--builder-navy);
    border: 1px solid rgba(211, 173, 103, .45);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(11, 33, 63, .18);
}

.builder-level-title {
    display: inline;
    margin: 0;
    color: var(--builder-navy);
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
}

.builder-level-rule {
    margin: 7px 0 0 39px;
    color: #897e72;
    font-size: 11px;
    font-weight: 500;
}

.builder-items-scroll {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding: 13px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8a25b #eee8df;
}

    .builder-items-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .builder-items-scroll::-webkit-scrollbar-track {
        margin: 8px 0;
        background: #eee8df;
        border-radius: 10px;
    }

    .builder-items-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #d8b873, #ae813d);
        border-radius: 10px;
    }

.builder-item-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 13px;
    min-width: 0;
    min-height: 132px;
    padding: 9px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7ddd0;
    border-radius: 15px;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

    .builder-item-card:hover {
        z-index: 2;
        border-color: #cda657;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(11, 33, 63, .10);
    }

    .builder-item-card.is-selected {
        border: 2px solid #cda657;
        background: linear-gradient(135deg, #ffffff 0%, #fff9ed 100%);
        box-shadow: 0 0 0 3px rgba(205, 166, 87, .13), 0 10px 22px rgba(11, 33, 63, .09);
    }

.builder-item-check {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    background: var(--builder-navy);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 9px rgba(11, 33, 63, .28);
}

.builder-item-card.is-selected .builder-item-check {
    display: flex;
}

.builder-item-image-box {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 0%, #faf7f2 100%);
    border: 1px solid #f0e8dc;
    border-radius: 11px;
}

.builder-item-image {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}

.builder-item-card:hover .builder-item-image {
    transform: scale(1.07);
}

.builder-item-placeholder {
    color: var(--builder-gold);
    font-family: Georgia, serif;
    font-size: 28px;
    font-style: italic;
}

.builder-item-name {
    align-self: end;
    display: -webkit-box;
    min-height: 38px;
    margin: 10px 28px 3px 0;
    overflow: hidden;
    color: var(--builder-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.builder-item-price {
    align-self: start;
    margin: 3px 0 0;
    color: #a37329;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1px;
}

.builder-empty-level {
    padding: 30px 18px;
    color: var(--builder-muted);
    font-size: 13px;
    text-align: center;
}

.builder-preview-panel {
    position: sticky;
    top: 16px;
    min-height: 720px;
    padding: 22px;
    color: var(--builder-text);
    background: linear-gradient( 180deg, #ffffff 0%, #fdfaf5 55%, #f8f3eb 100% );
    border: 1px solid #e4d7c4;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(11,33,63,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.builder-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.builder-preview-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .15px;
}

.builder-total-label {
    color: #6f6558;
}

.builder-total-price {
    color: #b48738;
}

.builder-reset-button {
    padding: 6px 13px;
  
    font-size: 10px;
    font-weight: 800;
    /*  color: #ead4a7;*/
   /* background: rgba(255, 255, 255, .025);*/
  /*  border: 1px solid rgba(234, 212, 167, .65);*/
    border-radius: 18px;
    cursor: pointer;
    transition: .2s ease;
    background: white;
    color: #0b213f;
    border: 1px solid #d6c2a0;
}

    .builder-reset-button:hover {
        background: #d6b16c;
        color: white;
        /*color: var(--builder-navy);
        background: #ead4a7;*/
        transform: translateY(-1px);
    }

.builder-preview-canvas {
    position: relative;
    width: 100%;
    height: 485px;
    overflow: hidden;
    background: radial-gradient( circle at center, #ffffff 0%, #f8f5ef 75%, #f3ede3 100% );
    border: 1px solid #dfcfb7;
    border-radius: 18px;
    box-shadow: inset 0 2px 8px rgba(255,255,255,.8), 0 8px 20px rgba(0,0,0,.06);
}

.builder-background-logo {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 1;
    width: 64%;
    max-height: 175px;
    object-fit: contain;
    opacity: .07;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.builder-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    color: var(--builder-gold);
    font-family: Georgia, serif;
    font-size: clamp(54px, 7vw, 91px);
    font-style: italic;
    opacity: .12;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.builder-preview-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.builder-preview-image {
    position: absolute;
    object-fit: contain;
    filter: contrast(1.04) brightness(1.02) drop-shadow(0 9px 12px rgba(0, 0, 0, .32));
}

.builder-preview-empty {
    position: absolute;
    bottom: 25px;
    left: 50%;
    z-index: 3;
    width: calc(100% - 40px);
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translateX(-50%);
}

.builder-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.builder-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.builder-total-label {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 700;
}

.builder-total-price {
    color: #f0d38f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
}

.builder-selection-count {
    margin-top: 5px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    text-align: right;
}

.builder-save-button {
    width: 100%;
    min-height: 47px;
    margin-top: 15px;
    padding: 10px 18px;
    color: #0b213f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .15px;
    background: linear-gradient(135deg, #e2c477, #cda650);
    border: 1px solid #dfbd6b;
    border-radius: 26px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

    .builder-save-button:hover {
        color: #ffffff;
        background: transparent;
        box-shadow: none;
        transform: translateY(-2px);
    }

    .builder-save-button:disabled {
        cursor: wait;
        opacity: .65;
    }

.builder-message-box {
    display: none;
    margin-top: 13px;
    padding: 12px;
    color: var(--builder-navy);
    font-size: 12px;
    line-height: 1.5;
    background: #f5ead5;
    border-radius: 12px;
}

    .builder-message-box.is-error {
        color: #8d2424;
        background: #ffe5e5;
    }

.builder-share-input {
    width: 100%;
    margin: 9px 0;
    padding: 9px 10px;
    color: var(--builder-navy);
    font-size: 12px;
    background: var(--builder-white);
    border: 1px solid #d7c7ad;
    border-radius: 8px;
}

.builder-copy-button {
    width: 100%;
    padding: 9px 12px;
    color: var(--builder-white);
    font-size: 12px;
    font-weight: 700;
    background: var(--builder-navy);
    border: 1px solid var(--builder-navy);
    border-radius: 20px;
    cursor: pointer;
}

.builder-mobile-layout {
    display: none;
}

.builder-mobile-level {
    margin-top: 16px;
    overflow: hidden;
    background: var(--builder-white);
    border: 1px solid var(--builder-border);
    border-radius: 18px;
}

.builder-mobile-level-header {
    padding: 15px 15px 10px;
}

.builder-mobile-scroll-wrap {
    position: relative;
    padding: 0 43px 15px;
}

.builder-mobile-items {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .builder-mobile-items::-webkit-scrollbar {
        display: none;
    }

    .builder-mobile-items .builder-item-card {
        flex: 0 0 138px;
    }

.builder-slider-button {
    position: absolute;
    top: 50%;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: var(--builder-white);
    background: var(--builder-navy);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

    .builder-slider-button.previous {
        left: 7px;
    }

    .builder-slider-button.next {
        right: 7px;
    }

@media (max-width: 1250px) {
    .builder-desktop-layout {
        grid-template-columns: minmax(255px, 290px) minmax(420px, 1fr) minmax(255px, 290px);
        gap: 14px;
    }

    .builder-side-column {
        height: 690px;
    }

    .builder-preview-panel {
        min-height: 690px;
    }

    .builder-preview-canvas {
        height: 455px;
    }

    .builder-item-card {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 116px;
    }

    .builder-item-image-box {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 1050px) {
    .builder-desktop-layout {
        grid-template-columns: minmax(220px, .78fr) minmax(370px, 1.22fr) minmax(220px, .78fr);
        gap: 14px;
    }

    .builder-item-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .builder-item-image-box {
        width: 82px;
        height: 82px;
    }

    .builder-item-name {
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .builder-desktop-layout {
        display: none;
    }

    .builder-mobile-layout {
        display: block;
    }

    .builder-preview-panel {
        position: relative;
        top: auto;
        min-height: 0;
    }

    .builder-preview-canvas {
        height: 430px;
    }

    .builder-mobile-items .builder-item-card {
        display: flex;
        flex-direction: column;
        min-height: 180px;
    }

    .builder-mobile-items .builder-item-image-box {
        width: 100%;
        height: 112px;
        margin-bottom: 8px;
    }

    .builder-mobile-items .builder-item-name {
        align-self: auto;
        min-height: 32px;
        margin: 0 2px 4px;
        font-family: inherit;
        font-size: 12px;
    }

    .builder-mobile-items .builder-item-price {
        margin-top: auto;
    }
}

@media (max-width: 575px) {
    .ghaya-builder-page {
        padding-top: 22px;
    }

    .ghaya-builder-container {
        width: min(100% - 20px, 1500px);
    }

    .builder-preview-panel {
        padding: 15px;
        border-radius: 19px;
    }

    .builder-preview-canvas {
        height: 355px;
    }

    .builder-mobile-scroll-wrap {
        padding-right: 38px;
        padding-left: 38px;
    }

    .builder-mobile-items .builder-item-card {
        flex-basis: 128px;
    }
}


/* adds design items stop bag */

.ghaya-builder-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ghaya-builder-cart-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 24px;
    border: 1px solid #a88645;
    border-radius: 4px;
    background: #101b35;
    color: #c5a46a;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

    .ghaya-builder-cart-button:hover {
        background: #c5a46a;
        color: #101b35;
    }

    .ghaya-builder-cart-button:disabled {
        cursor: wait;
        opacity: 0.65;
    }

.ghaya-builder-save-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(16, 27, 53, 0.18);
    background: #ffffff;
    color: #101b35;
}


/* =========================================================
   GHAYA BUILDER — LIGHT LUXURY PREVIEW
   Keep this block at the bottom of the CSS file
   ========================================================= */

.builder-preview-panel {
    position: sticky;
    top: 16px;
    min-height: 720px;
    padding: 22px;
    overflow: hidden;
    color: var(--builder-text);
    background: linear-gradient( 180deg, #ffffff 0%, #fdfaf5 55%, #f8f3eb 100% );
    border: 1px solid #e3d5c1;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(11, 33, 63, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* Preview heading */

.builder-preview-title {
    color: var(--builder-navy);
}


/* Reset button */

.builder-reset-button {
    color: var(--builder-navy);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d5bd95;
    box-shadow: 0 3px 10px rgba(11, 33, 63, 0.05);
}

    .builder-reset-button:hover {
        color: var(--builder-navy);
        background: var(--builder-gold-light);
        border-color: var(--builder-gold);
        transform: translateY(-1px);
    }


/* Main jewelry canvas */

.builder-preview-canvas {
    position: relative;
    width: 100%;
    height: 485px;
    overflow: hidden;
    background: radial-gradient( circle at 50% 42%, #ffffff 0%, #fbf8f2 52%, #f3ede3 100% );
    border: 1px solid #ddc9aa;
    border-radius: 20px;
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.95), inset 0 -10px 25px rgba(205, 182, 145, 0.08), 0 8px 22px rgba(11, 33, 63, 0.07);
}


/* Faint GHAYA logo behind the jewelry */

.builder-background-logo {
    opacity: 0.045;
    filter: sepia(1) saturate(0.7);
}

.builder-background-text {
    color: #bd9655;
    opacity: 0.09;
}


/* Jewelry image shadow for a light background */

.builder-preview-image {
    filter: contrast(1.03) brightness(1.02) drop-shadow(0 8px 9px rgba(54, 42, 28, 0.20));
}


/* Empty-preview instruction */

.builder-preview-empty {
    color: #827565;
}


/* Total section */

.builder-summary {
    border-top: 1px solid #e4d7c5;
}

.builder-total-label {
    color: #665c50;
}

.builder-total-price {
    color: #a87932;
}

.builder-selection-count {
    color: #918577;
}


/* Save button adjusted for the light panel */

.builder-save-button {
    color: var(--builder-navy);
    background: linear-gradient( 135deg, #ead08c 0%, #d5ad59 100% );
    border: 1px solid #cda650;
    box-shadow: 0 8px 18px rgba(132, 94, 34, 0.16);
}

    .builder-save-button:hover {
        color: var(--builder-navy);
        background: #f7ecd2;
        border-color: #cda650;
        box-shadow: 0 9px 20px rgba(11, 33, 63, 0.10);
        transform: translateY(-2px);
    }


/* Add-to-bag button remains navy and gold */

.ghaya-builder-cart-button {
    background: var(--builder-navy);
    color: var(--builder-gold-light);
    border-color: #b8914d;
    box-shadow: 0 7px 17px rgba(11, 33, 63, 0.13);
}

    .ghaya-builder-cart-button:hover {
        color: var(--builder-navy);
        background: var(--builder-gold-light);
        border-color: var(--builder-gold);
    }


/* Secondary Save Design button */

.ghaya-builder-save-button {
    color: var(--builder-navy);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d8c8af;
    border-radius: 4px;
}

    .ghaya-builder-save-button:hover {
        background: #f8f1e4;
        border-color: var(--builder-gold);
    }


/* Mobile keeps the same luxury appearance */

@media (max-width: 800px) {
    .builder-preview-panel {
        position: relative;
        top: auto;
        min-height: 0;
    }

    .builder-preview-canvas {
        height: 430px;
    }
}

@media (max-width: 575px) {
    .builder-preview-panel {
        padding: 15px;
        border-radius: 19px;
    }

    .builder-preview-canvas {
        height: 355px;
        border-radius: 16px;
    }
}
.builder-item-unavailable {
    position: relative;
    opacity: 0.62;
    cursor: not-allowed;
    pointer-events: none;
}

    .builder-item-unavailable .builder-item-image {
        filter: grayscale(1);
    }

.builder-item-image-wrap {
    position: relative;
}

.builder-unavailable-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(20, 24, 34, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/*save share design banner
*/

.builder-shared-copy-banner,
.builder-owner-edit-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 15px;
}

.builder-shared-copy-banner {
    color: #0b213f;
    background: #f4ead7;
    border: 1px solid #d8bd88;
}

.builder-owner-edit-banner {
    color: #ffffff;
    background: #0b213f;
    border: 1px solid #0b213f;
}

    .builder-shared-copy-banner strong,
    .builder-owner-edit-banner strong {
        display: block;
        margin-bottom: 3px;
        font-size: 15px;
    }

    .builder-shared-copy-banner span,
    .builder-owner-edit-banner span {
        display: block;
        font-size: 13px;
        line-height: 1.5;
    }

.builder-shared-copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: #0b213f;
    border-radius: 50%;
}


/* =========================================================
   GHAYA LIVE DESIGN SUMMARY
   ========================================================= */

.ghaya-design-summary {
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dfcfb7;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(11, 33, 63, 0.07);
}

.ghaya-summary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eadfce;
}

.ghaya-summary-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #a87932;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.ghaya-summary-heading h3 {
    margin: 0;
    color: var(--builder-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
}

.ghaya-summary-piece-count {
    padding: 5px 10px;
    color: #8b6529;
    font-size: 10px;
    font-weight: 800;
    background: #f8eedb;
    border: 1px solid #e2c995;
    border-radius: 999px;
}

.ghaya-summary-items {
    max-height: 230px;
    overflow-y: auto;
}

.ghaya-summary-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #eee4d6;
}

.ghaya-summary-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    color: #b58b45;
    font-family: Georgia, serif;
    background: radial-gradient( circle at center, #ffffff, #f7f1e7 );
    border: 1px solid #eadfce;
    border-radius: 10px;
}

    .ghaya-summary-item-image img {
        width: 100%;
        height: 100%;
        padding: 4px;
        object-fit: contain;
    }

.ghaya-summary-item-information {
    min-width: 0;
}

.ghaya-summary-item-level {
    display: block;
    margin-bottom: 3px;
    color: #a87932;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ghaya-summary-item-information strong {
    display: block;
    overflow: hidden;
    color: var(--builder-navy);
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghaya-summary-item-price {
    color: #9b6b25;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.ghaya-summary-empty {
    padding: 28px 12px;
    color: #887c6d;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.ghaya-summary-information {
    padding: 12px 0;
    border-bottom: 1px solid #eadfce;
}

.ghaya-summary-information-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    color: #74695c;
    font-size: 12px;
}

    .ghaya-summary-information-row strong {
        color: var(--builder-navy);
        font-weight: 800;
    }

.ghaya-summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0 4px;
}

    .ghaya-summary-total span {
        color: #786c5d;
        font-size: 12px;
        font-weight: 700;
    }

    .ghaya-summary-total strong {
        color: #a87932;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 25px;
        font-weight: 700;
    }

.ghaya-summary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 575px) {
    .ghaya-design-summary {
        padding: 14px;
    }

    .ghaya-summary-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

        .ghaya-summary-total strong {
            font-size: 22px;
        }
}


/* =========================================================
   GHAYA BUILDER — STUDIO DESKTOP LAYOUT
   ========================================================= */

.builder-desktop-layout {
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(560px, 1fr) minmax(290px, 340px);
    align-items: start;
    gap: 18px;
}

.builder-center-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

    .builder-center-column .builder-preview-panel {
        position: relative;
        top: auto;
        min-height: auto;
    }

    .builder-center-column .builder-preview-canvas {
        height: 520px;
    }

.builder-center-levels {
    min-width: 0;
}

    /* Horizontal charms section beneath the canvas */

    .builder-center-levels .builder-mobile-level {
        margin-top: 0;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #dfd2bf;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(11, 33, 63, 0.06);
    }

    .builder-center-levels .builder-mobile-level-header {
        padding: 16px 18px 10px;
    }

    .builder-center-levels .builder-mobile-scroll-wrap {
        padding: 0 45px 18px;
    }

    .builder-center-levels .builder-mobile-items {
        display: flex;
        gap: 12px;
        overflow-x: auto;
    }

    .builder-center-levels .builder-item-card {
        flex: 0 0 150px;
        display: flex;
        flex-direction: column;
        min-height: 205px;
        padding: 9px;
    }

    .builder-center-levels .builder-item-image-box {
        width: 100%;
        height: 118px;
        margin-bottom: 8px;
    }

    .builder-center-levels .builder-item-name {
        align-self: auto;
        min-height: 36px;
        margin: 0 3px 4px;
        font-size: 12px;
    }

    .builder-center-levels .builder-item-price {
        margin: auto 3px 2px;
    }

/* Right summary */

.builder-summary-column {
    position: sticky;
    top: 16px;
    min-width: 0;
}

.builder-summary-panel {
    padding: 20px;
    overflow: hidden;
    background: linear-gradient( 180deg, #ffffff 0%, #fcf8f1 100% );
    border: 1px solid #dfd0b9;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(11, 33, 63, 0.08);
}

    .builder-summary-panel .ghaya-summary-items {
        max-height: 330px;
    }

/* Existing left panels */

.builder-left-column {
    height: 760px;
}

@media (max-width: 1250px) {
    .builder-desktop-layout {
        grid-template-columns: minmax(235px, 275px) minmax(470px, 1fr) minmax(250px, 295px);
        gap: 13px;
    }

    .builder-center-column
    .builder-preview-canvas {
        height: 470px;
    }

    .builder-center-levels
    .builder-item-card {
        flex-basis: 138px;
    }
}

@media (max-width: 1050px) {
    .builder-desktop-layout {
        display: none;
    }

    .builder-mobile-layout {
        display: block;
    }

    .builder-summary-panel {
        margin-top: 16px;
    }
}


.ghaya-summary-item {
    grid-template-columns: 54px minmax(0, 1fr) auto 30px;
}

.ghaya-summary-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #9a6b2a;
    font-size: 20px;
    line-height: 1;
    background: #fffaf1;
    border: 1px solid #dfc792;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .ghaya-summary-remove:hover {
        color: #ffffff;
        background: #a87932;
        transform: scale(1.06);
    }



/* =========================================================
   GHAYA LUXURY DESIGN SUMMARY
   ========================================================= */

.ghaya-luxury-summary {
    overflow: hidden;
    padding: 0;
    background: linear-gradient( 180deg, #fffdf9 0%, #f9f3e9 100% );
    border: 1px solid rgba(178, 137, 65, 0.42);
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(10, 29, 54, 0.12);
}

.ghaya-luxury-summary-header {
    position: relative;
    padding: 24px 20px 19px;
    color: #ffffff;
    text-align: center;
    background: radial-gradient( circle at top, #18345c 0%, #0c203e 48%, #07162d 100% );
    border-bottom: 2px solid #c79a43;
}

.ghaya-luxury-summary-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #d9b866;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.ghaya-luxury-summary-header h2 {
    margin: 0;
    color: #f2d789;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ghaya-luxury-summary-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 8px;
}

    .ghaya-luxury-summary-divider span {
        width: 42px;
        height: 1px;
        background: linear-gradient( 90deg, transparent, #bd9343 );
    }

        .ghaya-luxury-summary-divider span:last-child {
            background: linear-gradient( 90deg, #bd9343, transparent );
        }

    .ghaya-luxury-summary-divider b {
        color: #d4ac57;
        font-size: 10px;
        font-weight: 400;
    }

.ghaya-luxury-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 11px;
    color: #e9d296;
    font-size: 9px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(217, 184, 102, 0.35);
    border-radius: 999px;
}

.ghaya-luxury-summary-body {
    padding: 8px 18px 2px;
}

.ghaya-luxury-summary
.ghaya-summary-items {
    max-height: 325px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 138, 65, 0.6) transparent;
}

    .ghaya-luxury-summary
    .ghaya-summary-items::-webkit-scrollbar {
        width: 5px;
    }

    .ghaya-luxury-summary
    .ghaya-summary-items::-webkit-scrollbar-thumb {
        background: rgba(180, 138, 65, 0.55);
        border-radius: 10px;
    }

.ghaya-luxury-summary
.ghaya-summary-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto 29px;
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(180, 138, 65, 0.18);
}

.ghaya-luxury-summary
.ghaya-summary-item-image {
    width: 58px;
    height: 58px;
    background: radial-gradient( circle at center, #ffffff, #f5ecdc );
    border: 1px solid rgba(180, 138, 65, 0.3);
    border-radius: 13px;
    box-shadow: 0 7px 15px rgba(10, 29, 54, 0.06);
}

    .ghaya-luxury-summary
    .ghaya-summary-item-image img {
        width: 100%;
        height: 100%;
        padding: 6px;
        object-fit: contain;
    }

.ghaya-luxury-summary
.ghaya-summary-item-level {
    margin-bottom: 4px;
    color: #a7792f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ghaya-luxury-summary
.ghaya-summary-item-information strong {
    color: #0d203d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}

.ghaya-luxury-summary
.ghaya-summary-item-price {
    color: #9a6b20;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.ghaya-luxury-summary
.ghaya-summary-remove {
    width: 27px;
    height: 27px;
    color: #a67a34;
    background: #fffaf1;
    border: 1px solid rgba(180, 138, 65, 0.4);
    border-radius: 50%;
}

    .ghaya-luxury-summary
    .ghaya-summary-remove:hover {
        color: #ffffff;
        background: #a7792f;
    }

.ghaya-summary-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    padding: 25px 16px;
    color: #746956;
    text-align: center;
}

.ghaya-summary-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    color: #bc9348;
    font-size: 25px;
    border: 1px solid rgba(180, 138, 65, 0.35);
    border-radius: 50%;
}

.ghaya-summary-empty strong {
    margin-bottom: 7px;
    color: #10213d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.ghaya-summary-empty p {
    max-width: 230px;
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
}

.ghaya-luxury-measurements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 10px 18px 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(180, 138, 65, 0.27);
    border-radius: 15px;
}

.ghaya-luxury-measurement {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 12px 8px;
    text-align: center;
}

    .ghaya-luxury-measurement +
    .ghaya-luxury-measurement {
        border-left: 1px solid rgba(180, 138, 65, 0.22);
    }

.ghaya-luxury-measurement-icon {
    margin-bottom: 5px;
    color: #b18437;
    font-size: 17px;
}

.ghaya-luxury-measurement-label {
    margin-bottom: 5px;
    color: #7c7161;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ghaya-luxury-measurement strong {
    color: #10213d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.ghaya-luxury-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 18px 0;
    padding: 15px 0 3px;
    border-top: 1px solid rgba(180, 138, 65, 0.25);
}

    .ghaya-luxury-total span {
        color: #766a59;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .ghaya-luxury-total strong {
        color: #a97927;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 23px;
        font-weight: 600;
        white-space: nowrap;
    }

.ghaya-luxury-actions {
    display: grid;
    gap: 9px;
    padding: 13px 18px 0;
}

.ghaya-luxury-primary-button,
.ghaya-luxury-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 49px;
    border-radius: 12px;
    cursor: pointer;
}

.ghaya-luxury-primary-button {
    color: #f4d985;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient( 135deg, #132d52, #07172f );
    border: 1px solid #c69a45;
    box-shadow: 0 10px 22px rgba(8, 25, 48, 0.2);
}

    .ghaya-luxury-primary-button:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(8, 25, 48, 0.26);
    }

.ghaya-luxury-button-icon {
    font-size: 17px;
}

.ghaya-luxury-secondary-button {
    color: #10213d;
    font-size: 11px;
    font-weight: 800;
    background: transparent;
    border: 1px solid rgba(180, 138, 65, 0.48);
}

    .ghaya-luxury-secondary-button:hover {
        color: #9b6d24;
        background: rgba(255, 255, 255, 0.7);
    }

.ghaya-luxury-summary-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 12px 15px 15px;
    color: #7a705f;
    font-size: 9px;
    border-top: 1px solid rgba(180, 138, 65, 0.2);
}

    .ghaya-luxury-summary-footer span {
        color: #b2873d;
    }

    .ghaya-luxury-summary-footer p {
        margin: 0;
    }

.ghaya-luxury-summary
.builder-message-box:not(:empty) {
    margin: 10px 18px 16px;
}

@media (max-width: 1050px) {
    .ghaya-luxury-summary {
        margin-top: 18px;
    }

        .ghaya-luxury-summary
        .ghaya-summary-items {
            max-height: 420px;
        }
}

@media (max-width: 575px) {
    .ghaya-luxury-summary-header {
        padding: 20px 16px 17px;
    }

        .ghaya-luxury-summary-header h2 {
            font-size: 24px;
        }

    .ghaya-luxury-summary
    .ghaya-summary-item {
        grid-template-columns: 52px minmax(0, 1fr) 27px;
    }

    .ghaya-luxury-summary
    .ghaya-summary-item-price {
        display: none;
    }

    .ghaya-luxury-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

        .ghaya-luxury-total strong {
            font-size: 22px;
        }
}



/* =========================================================
   GHAYA LUXURY SUMMARY SECTIONS
   ========================================================= */

.ghaya-summary-section {
    padding: 11px 0 3px;
}

    .ghaya-summary-section +
    .ghaya-summary-section {
        border-top: 1px solid rgba(180, 138, 65, 0.22);
    }

.ghaya-summary-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 27px;
    color: #a4772f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

    .ghaya-summary-section-header::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient( 90deg, rgba(180, 138, 65, 0.38), transparent );
    }

.ghaya-summary-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    color: #9a6d26;
    font-size: 9px;
    letter-spacing: 0;
    background: #f8edda;
    border: 1px solid rgba(180, 138, 65, 0.34);
    border-radius: 999px;
}

.ghaya-summary-section-items {
    display: flex;
    flex-direction: column;
}

.ghaya-summary-item-weight {
    display: block;
    margin-top: 4px;
    color: #817666;
    font-size: 9px;
    font-weight: 600;
}