﻿.my-designs-page {
    min-height: 70vh;
    padding: 48px 0 70px;
    background: linear-gradient(180deg,#f8f6f1 0%,#fff 60%)
}

.my-designs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 34px
}

.my-designs-eyebrow {
    margin: 0 0 8px;
    color: #a88645;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em
}

.my-designs-header h1 {
    margin: 0;
    color: #101b2c;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(2rem,4vw,3.4rem);
    font-weight: 500
}

.my-designs-subtitle {
    max-width: 620px;
    margin: 10px 0 0;
    color: #6d7380
}

.my-designs-create-button, .my-designs-empty-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #101b2c;
    border-radius: 999px;
    background: #101b2c;
    color: #fff;
    font-weight: 600;
    text-decoration: none
}

.my-designs-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px
}

.my-design-card {
    overflow: hidden;
    border: 1px solid rgba(16,27,44,.09);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16,27,44,.07)
}

.my-design-card-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4/3;
    padding: 24px;
    background: radial-gradient(circle at center,#fff 0%,#f2eee5 100%);



     width: 100%;
    height: 235px;
    overflow: hidden;
}


    /*
 * Apply full size only to a direct preview image,
 * not to the layered chain, lock and charms.
 */
    .my-design-card-image > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.my-design-card-placeholder {
    color: rgba(168,134,69,.32);
    font-family: Georgia,"Times New Roman",serif;
    font-size: 2.2rem;
    letter-spacing: .12em
}

.my-design-favorite {
    position: absolute;
    top: 16px;
    right: 18px;
    color: #a88645;
    font-size: 1.4rem
}

.my-design-card-body {
    padding: 22px
}

.my-design-style {
    margin: 0 0 6px;
    color: #a88645;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

.my-design-card-body h2 {
    margin: 0;
    color: #101b2c;
    font-family: Georgia,"Times New Roman",serif;
    font-size: 1.55rem;
    font-weight: 500
}

.my-design-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: #7a808b;
    font-size: .86rem
}

.my-design-price {
    margin-top: 18px;
    color: #101b2c;
    font-size: 1.08rem;
    font-weight: 700
}

.my-design-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 20px
}

.my-design-primary-action, .my-design-secondary-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none
}

.my-design-primary-action {
    background: #101b2c;
    color: #fff
}

.my-design-secondary-action {
    border: 1px solid rgba(16,27,44,.18);
    background: #fff;
    color: #101b2c
}

.my-designs-empty {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 60px 30px;
    border: 1px solid rgba(16,27,44,.09);
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 46px rgba(16,27,44,.07)
}

.my-designs-empty-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border: 1px solid rgba(168,134,69,.35);
    border-radius: 50%;
    color: #a88645;
    font-family: Georgia,"Times New Roman",serif;
    font-size: 2rem
}

.my-designs-empty h2 {
    margin: 0;
    color: #101b2c;
    font-family: Georgia,"Times New Roman",serif;
    font-size: 2rem;
    font-weight: 500
}

.my-designs-empty p {
    max-width: 500px;
    margin: 14px auto 24px;
    color: #6d7380
}

@media(max-width:991.98px) {
    .my-designs-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:767.98px) {
    .my-designs-page {
        padding-top: 30px
    }

    .my-designs-header {
        align-items: stretch;
        flex-direction: column
    }

    .my-designs-create-button {
        align-self: flex-start
    }

    .my-designs-grid {
        grid-template-columns: 1fr
    }
}


.my-design-favorite-form {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
}
.my-design-card {
    position: relative;
    z-index: 1;
}
.my-design-favorite-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(168, 134, 69, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #a88645;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 27, 44, 0.08);
}

.my-design-delete-form {
    grid-column: 1 / -1;
}

.my-design-delete-button {
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #9b3b3b;
    font-size: 0.88rem;
    cursor: pointer;
}

.my-design-delete-button:hover {
    text-decoration: underline;
}

.my-design-rename-toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a88645;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

    .my-design-rename-toggle:hover {
        text-decoration: underline;
    }

.my-design-rename-form {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 27, 44, 0.1);
    border-radius: 14px;
    background: #faf8f3;
}

    .my-design-rename-form.is-open {
        display: block;
    }

.my-design-rename-input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(16, 27, 44, 0.18);
    border-radius: 10px;
    background: #ffffff;
    color: #101b2c;
    font-size: 0.95rem;
    outline: none;
}

    .my-design-rename-input:focus {
        border-color: #a88645;
        box-shadow: 0 0 0 3px rgba(168, 134, 69, 0.1);
    }

.my-design-rename-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.my-design-rename-save,
.my-design-rename-cancel {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.my-design-rename-save {
    border: 1px solid #101b2c;
    background: #101b2c;
    color: #ffffff;
}

.my-design-rename-cancel {
    border: 1px solid rgba(16, 27, 44, 0.18);
    background: #ffffff;
    color: #101b2c;
}

.my-designs-message {
    margin-bottom: 24px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
}

    .my-designs-message.is-success {
        border: 1px solid rgba(47, 122, 76, 0.2);
        background: #edf8f1;
        color: #25643d;
    }

    .my-designs-message.is-error {
        border: 1px solid rgba(155, 59, 59, 0.2);
        background: #fff0f0;
        color: #8d3030;
    }

/* =========================================
   SAVED DESIGN PREVIEW
   Matches Design Card 850 × 560 proportions
========================================= */

.saved-design-preview {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 850 / 560;
    overflow: hidden;
    isolation: isolate;
}

.saved-design-preview-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

.saved-design-preview-item {
    position: absolute;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    /*
     * Temporary while product images
     * still contain white backgrounds.
     */
    mix-blend-mode: multiply;
    filter: drop-shadow( 0 6px 9px rgba(0, 0, 0, 0.16) );
}

.saved-design-preview-chain {
    width: 84%;
    height: 68%;
    left: 8%;
    top: 0;
    z-index: 10;
}

.saved-design-preview-lock {
    width: 15%;
    height: 22%;
    left: 50%;
    top: 55%;
    z-index: 25;
    transform: translate(-50%, -50%);
}

.saved-design-preview-charm {
    width: 9.5%;
    height: 14.5%;
    z-index: 30;
    transform-origin: center center;
}


.saved-design-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 6px;
    color: rgba(181, 143, 72, 0.45);
}






