:root {
    --pink: #f8c8dc;
    --blush: #fde6ef;
    --cream: #fff6f9;
    --straw: #e85a7d;
    --ink: #4a2f36;
    --soft-ink: #8a5d66;
    --card: rgba(255, 246, 249, 0.75);
    --line: rgba(138, 93, 102, 0.22);
    --shadow: 0 12px 30px rgba(74, 47, 54, 0.12);
    --trans: 180ms ease;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--pink), var(--blush));
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
} /* Lace border */
.lace{
  height: 100px;                 /* adjust to match your banner image height */
  width: 100%;
  pointer-events: none;

  background-image: url("../assets/images/banner.png");
  background-repeat: repeat-x;   /* repeats horizontally */
  background-position: top center;
 background-size: auto 100px;    /*scale image height to 44px */
}

.wrap{
  padding: 0 18px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.topbar {
    text-align: center;
    width: min(980px, 100%);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    font-size: clamp(28px, 4vw, 44px);
}
.tagline {
    margin-top: 6px;
    color: var(--soft-ink);
    font-size: 14px;
} 
/* Shop page */
.wrap--shop {
    padding-top: 0;
    width: 100%;
}
.topbar--shop{
  display: flex;
  justify-content: center;
  align-items: center;
}

.basket-pill {
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform var(--trans);
}
.basket-pill:hover {
    transform: translateY(-1px);
}
.basket-pill__count {
    display: inline-flex;
    min-width: 24px;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(232, 90, 125, 0.2);
    border: 1px solid rgba(232, 90, 125, 0.18);
    color: var(--soft-ink);
    font-weight: 600;
}
.boutique {
    width: min(1200px, 100%);
    height: min(620px, calc(100vh - 180px));
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 14px;
    align-items: stretch;
    margin-top: 12px;
}
.shopkeeper,
.basket,
.displays {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.shopkeeper {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.counter {
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    background: rgba(255, 246, 249, 0.7);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.counter__badge {
    font-size: 12px;
    color: var(--soft-ink);
}
.shopkeeper__btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(232, 90, 125, 0.2);
    border: 1px solid rgba(232, 90, 125, 0.18);
    color: var(--soft-ink);
    font-weight: 600;
}
.bubble {
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.2);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    min-height: 86px;
    display: flex;
    align-items: center;
    color: var(--soft-ink);
} /* player */
.player {
    margin-top: auto;
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.18);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
}
.player__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.player__title {
    font-size: 12px;
    color: var(--soft-ink);
}
.player__toggle {
    border: none;
    background: transparent;
    color: var(--soft-ink);
    cursor: pointer;
    text-decoration: underline;
}
.player__row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.player__hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
}
.btn {
    border-radius: 999px;
    border: 1px solid rgba(138, 93, 102, 0.2);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    cursor: pointer;
    color: var(--soft-ink);
    font-weight: 600;
}
.btn--primary {
    background: rgba(232, 90, 125, 0.22);
    border-color: rgba(232, 90, 125, 0.22);
}
.btn--small {
    padding: 8px 10px;
    font-size: 12px;
} /* displays */
.displays {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wall {
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.18);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    flex: 0 0 180px;
}
.frames {
    height: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.frame {
    width: 150px;
    height: 140px;
    border-radius: 18px;
    background: rgba(255, 246, 249, 0.78);
    border: 1px solid rgba(138, 93, 102, 0.22);
    box-shadow: 0 10px 18px rgba(74, 47, 54, 0.1);
    position: relative;
    transition:
        transform var(--trans),
        box-shadow var(--trans);
}
.frame__inner {
    position: absolute;
    inset: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 200, 220, 0.55), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(138, 93, 102, 0.12);
}
.prodtag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(138, 93, 102, 0.14);
    color: rgba(74, 47, 54, 0.6);
}
.floor {
    flex: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 12px;
}
.pedestals {
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.18);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 12px;
    align-content: start;
}
.pedestal {
    border-radius: 18px;
    border: 1px solid rgba(138, 93, 102, 0.18);
    background: rgba(255, 246, 249, 0.78);
    padding: 12px;
    box-shadow: 0 10px 18px rgba(74, 47, 54, 0.1);
    transition:
        transform var(--trans),
        box-shadow var(--trans);
    position: relative;
    user-select: none;
}
.pedestal__top {
    height: 14px;
    border-radius: 999px;
    background: rgba(248, 200, 220, 0.75);
    border: 1px solid rgba(138, 93, 102, 0.14);
}
.pedestal__item {
    height: 56px;
    margin-top: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 200, 220, 0.58));
    border: 1px solid rgba(138, 93, 102, 0.12);
}
.prodname {
    margin-top: 10px;
    color: var(--soft-ink);
    font-weight: 700;
    font-size: 13px;
    text-transform: lowercase;
}
.prodprice {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
}
.pegboard {
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.18);
    background:
        radial-gradient(circle at 10px 10px, rgba(138, 93, 102, 0.14) 0 1px, transparent 2px) 0 0/20px 20px,
        rgba(255, 255, 255, 0.62);
    padding: 12px;
}
.pegboard__title {
    font-size: 12px;
    color: var(--soft-ink);
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}
.hookrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.hanger {
    border-radius: 18px;
    border: 1px dashed rgba(138, 93, 102, 0.28);
    background: rgba(255, 246, 249, 0.78);
    padding: 12px;
    position: relative;
    box-shadow: 0 10px 18px rgba(74, 47, 54, 0.08);
    transition:
        transform var(--trans),
        box-shadow var(--trans);
    user-select: none;
}
.hanger__sheet {
    height: 86px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(138, 93, 102, 0.12);
} /* Basket */
.basket {
    padding: 14px;
    display: flex;
}
.basket__card {
    width: 100%;
    border-radius: var(--radius2);
    border: 1px solid rgba(138, 93, 102, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 246, 249, 0.62));
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.basket__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--soft-ink);
    text-transform: lowercase;
}
.basket__hint {
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
}
.basket__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    flex: 1;
    border-radius: 14px;
    border: 1px solid rgba(138, 93, 102, 0.14);
    background: rgba(255, 255, 255, 0.55);
    padding: 10px;
}
.basket__item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(138, 93, 102, 0.12);
    background: rgba(255, 246, 249, 0.6);
}
.basket__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.basket__name {
    font-weight: 700;
    color: var(--soft-ink);
    font-size: 13px;
}
.basket__sub {
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
}
.basket__remove {
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(74, 47, 54, 0.55);
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
}
.basket__actions {
    display: flex;
    gap: 10px;
}
.basket__tiny {
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
} /* shared interaction */
.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(74, 47, 54, 0.14);
}
.product:active {
    transform: translateY(0px);
}
.product.dragging {
    opacity: 0.6;
    transform: scale(0.98);
}
.drop-glow {
    outline: 2px solid rgba(232, 90, 125, 0.35);
    box-shadow: 0 0 0 8px rgba(232, 90, 125, 0.1);
} /* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(74, 47, 54, 0.35);
}
.modal.open {
    display: flex;
}
.modal__panel {
    width: min(560px, 100%);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.modal__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(138, 93, 102, 0.14);
}
.modal__title {
    font-weight: 800;
    color: var(--soft-ink);
}
.modal__close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    color: rgba(74, 47, 54, 0.55);
}
.modal__body {
    padding: 14px 16px;
}
.modal__note {
    font-size: 12px;
    color: rgba(74, 47, 54, 0.55);
    margin-bottom: 10px;
}
.modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal__li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(138, 93, 102, 0.12);
    background: rgba(255, 246, 249, 0.7);
}
.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(138, 93, 102, 0.14);
} 
/* Responsive: mobile turns into tap-to-add, basket docks */
@media (max-width: 980px) {
    .boutique {
        height: auto;
        grid-template-columns: 1fr;
    }
    .shopkeeper {
        order: 1;
    }
    .displays {
        order: 2;
    }
    .basket {
        order: 3;
    }
    .floor {
        grid-template-columns: 1fr;
    }
    .pedestals {
        grid-template-columns: 1fr 1fr;
    }
}