/* -----------------------------------------------------------
   PREMIUM SHARED STYLES (RPL Framework)
   Used by Restaurant and Hypermarket Product Lists
----------------------------------------------------------- */

/* -- Top Header Bar -- */
.rpl-header {
    background: linear-gradient(135deg, #fdb913 0%, #065F46 55%, #047857 100%);
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.2);
}

.rpl-header-left h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpl-header-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin-top: 3px;
    font-weight: 500;
}

.rpl-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpl-total-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

/* -- Mini Stat Chips -- */
.rpl-stats-row {
    display: flex;
    gap: 14px;
    padding: 15px 15px 0;
    flex-wrap: wrap;
}

.rpl-stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E6F4EE;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 2px 10px rgba(6, 78, 59, 0.06);
    flex: 1;
    min-width: 140px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rpl-stat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 78, 59, 0.1);
}

.rpl-stat-dot {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.rpl-stat-chip .rpl-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rpl-stat-chip .rpl-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #022C22;
    line-height: 1;
    margin-top: 2px;
}

/* -- Toolbar (Search + Filters) -- */
.rpl-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 15px 0;
    flex-wrap: wrap;
}

.rpl-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rpl-search-box:focus-within {
    border-color: #fdb913;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.rpl-search-box i {
    color: #94A3B8;
    font-size: 0.9rem;
}

.rpl-search-box input {
    border: none;
    outline: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #022C22;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

.rpl-search-box input::placeholder {
    color: #CBD5E1;
    font-weight: 500;
}

.rpl-select {
    padding: 10px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #022C22;
    background: #fff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rpl-select:focus {
    border-color: #fdb913;
}

/* Toggle Buttons */
.rpl-type-filter {
    display: flex;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}

.rpl-type-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.rpl-type-btn.active-all {
    background: #022C22;
    color: #fff;
}

.rpl-type-btn.active-veg {
    background: #D1FAE5;
    color: #065F46;
}

.rpl-type-btn.active-nonveg {
    background: #FEE2E2;
    color: #991B1B;
}

/* -- Table Wrapper -- */
.rpl-table-wrap {
    margin: 15px 15px 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 28px rgba(6, 78, 59, 0.07);
    border: 1px solid #E6F4EE;
    overflow: hidden;
}

.rpl-table-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #F1F5F9;
}

.rpl-table-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #022C22;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpl-count-badge {
    background: #ECFDF5;
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.rpl-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
}

.rpl-per-page select {
    padding: 5px 10px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #022C22;
    background: #F8FAFC;
    outline: none;
    font-family: inherit;
}

/* Scrollable body */
.rpl-scroll {
    overflow-x: auto;
    max-height: calc(100vh - 370px);
    overflow-y: auto;
}

.rpl-scroll::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

.rpl-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

/* Table */
.rpl-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.rpl-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.rpl-table thead th {
    background: #F8FAFC;
    padding: 10px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    border-bottom: 2px solid #F1F5F9;
    white-space: nowrap;
    text-align: left;
}

.rpl-table thead th:first-child {
    padding-left: 22px;
}

.rpl-table tbody tr {
    border-bottom: 1px solid #F8FAFC;
    transition: background 0.15s;
}

.rpl-table tbody tr:last-child {
    border-bottom: none;
}

.rpl-table tbody tr:hover {
    background: #F0FDF9;
}

.rpl-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1E293B;
    vertical-align: middle;
}

.rpl-table td:first-child {
    padding-left: 22px;
    color: #94A3B8;
    font-weight: 700;
}

/* Inline Editable Inputs */
.rpl-inline-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E293B;
    background: rgba(248, 250, 252, 0.5);
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.rpl-inline-input:hover {
    border-color: #E2E8F0;
    background: #fff;
}

.rpl-inline-input:focus {
    border-color: #fdb913;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.food-id-chip {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
}

.food-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.food-icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.food-name-text {
    font-weight: 700;
    color: #008a99;
    white-space: nowrap;
}

.cat-tag {
    display: inline-block;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

/* Status badge */
@keyframes blink-active {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

@keyframes blink-waiting {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes blink-inactive {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.status-badge-active {
    background: #ECFDF5;
    color: #10B981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    animation: blink-active 1.5s infinite ease-in-out;
}

.status-badge-waiting {
    background: #FFFBEB;
    color: #D97706;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    animation: blink-waiting 2.5s infinite ease-in-out;
}

.status-badge-inactive {
    background: #FEF2F2;
    color: #DC2626;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    animation: blink-inactive 1.2s infinite ease-in-out;
}

.rpl-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.rpl-menu-btn:hover {
    background: #fdb913;
    color: #fff;
    border-color: #fdb913;
}

/* -- Pagination Bar -- */
.rpl-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid #F1F5F9;
    background: #FAFAFA;
}

.rpl-page-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
}

.rpl-page-btns {
    display: flex;
    gap: 6px;
}

.rpl-page-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
    font-family: inherit;
}

.rpl-page-btn:hover:not(:disabled) {
    background: #fdb913;
    color: #fff;
    border-color: #fdb913;
}

.rpl-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* -- Shimmer -- */
@keyframes rplShimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.rpl-shimmer td {
    background: linear-gradient(90deg, #F8FAFC 25%, #EDF2F7 50%, #F8FAFC 75%);
    background-size: 600px 100%;
    animation: rplShimmer 1.4s infinite;
    color: transparent !important;
    border-radius: 6px;
    user-select: none;
}

/* -- Empty State -- */
.rpl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    color: #94A3B8;
}

.rpl-empty-icon {
    width: 64px;
    height: 64px;
    background: #F1F5F9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.rpl-empty h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
}

.rpl-empty p {
    font-size: 0.85rem;
}

/* -- Modal -- */
.rpl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 44, 34, 0.45);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.rpl-modal {
    background: #fff;
    border-radius: 22px;
    width: 520px;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalPop {
    from {
        transform: scale(0.88) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.rpl-modal-head {
    background: linear-gradient(135deg, #fdb913, #38bdf8);
    padding: 22px 26px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rpl-modal-head h2 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.rpl-modal-head p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    margin-top: 2px;
}

.rpl-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rpl-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.rpl-modal-body {
    overflow-y: auto;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.rpl-modal-body::-webkit-scrollbar {
    width: 5px;
}

.rpl-modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.rpl-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rpl-field-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #022C22;
    background: #F8FAFC;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rpl-field-input:focus {
    border-color: #fdb913;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.rpl-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rpl-modal-foot {
    padding: 16px 24px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #FAFAFA;
}

.rpl-btn-cancel {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    color: #64748B;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}

.rpl-btn-cancel:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.rpl-btn-save {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #fdb913, #fdb913);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.3);
    transition: all 0.2s;
}

.rpl-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.4);
}

.rpl-drop-item {
    padding: 11px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, padding-left 0.15s;
}

.rpl-drop-item:hover {
    background: #F8FAFC;
    padding-left: 22px;
}

/* -- Image Upload Zone -- */
.rpl-img-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    user-select: none;
}

.rpl-img-zone:hover {
    border-color: #fdb913;
    background: #ECFDF5;
}

.rpl-img-zone.dragover {
    border-color: #38bdf8;
    background: #D1FAE5;
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.rpl-img-zone.has-image {
    border-style: solid;
    border-color: #fdb913;
    padding: 0;
    background: #000;
}

.rpl-img-zone .zone-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s, transform 0.2s;
}

.rpl-img-zone:hover .zone-icon {
    background: #A7F3D0;
    transform: scale(1.08);
}

.rpl-img-zone .zone-main-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.rpl-img-zone .zone-main-text span {
    color: #fdb913;
    text-decoration: underline;
}

.rpl-img-zone .zone-sub {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 500;
}

.rpl-img-zone .zone-preview {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: none;
    border-radius: 12px;
}

.rpl-img-zone.has-image .zone-preview {
    display: block;
}

.rpl-img-zone.has-image .zone-icon,
.rpl-img-zone.has-image .zone-main-text,
.rpl-img-zone.has-image .zone-sub {
    display: none;
}

.rpl-img-change-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 44, 34, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.rpl-img-zone.has-image:hover .rpl-img-change-overlay {
    display: flex;
}

.rpl-img-change-overlay button {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fdb913;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rpl-img-change-overlay button:hover {
    background: #ECFDF5;
}

/* -- Variant Switcher Tiles -- */
.variant-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 2px 0;
    max-width: 135px;
}

.variant-tiles::-webkit-scrollbar {
    display: none;
}

.variant-tile {
    padding: 4px 8px;
    min-width: 42px;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    color: #64748B;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-tile:hover {
    border-color: #fdb913;
    color: #fdb913;
    background: #FFFBEB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(253, 185, 19, 0.15);
}

.variant-tile.active {
    background: linear-gradient(135deg, #fdb913, #f59e0b);
    color: #fff;
    border-color: #fdb913;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.variant-tile.active:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.45);
}

.variant-tile .unit-text {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Column Sizing Helpers -- */
.rpl-col-id {
    width: 60px !important;
    text-align: center !important;
}

.rpl-col-status {
    width: 100px !important;
    text-align: center !important;
}

.rpl-col-actions {
    width: 50px !important;
    text-align: center !important;
}

/* Slimmer badges for tight spaces */
.status-badge-active,
.status-badge-waiting,
.status-badge-inactive {
    padding: 3px 8px !important;
    font-size: 0.65rem !important;
}

/* -- Banner Studio -- */
.studio-layout {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #f8fafc;
    min-height: calc(100vh - 100px);
}

.studio-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.studio-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.banner-preview-canvas {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 2 / 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.studio-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.studio-section:last-child {
    border-bottom: none;
}

.canvas-element {
    position: absolute;
    cursor: move;
    user-select: none;
    transition: outline 0.2s;
}

.canvas-element:hover {
    outline: 2px dashed #fdb913;
}

.canvas-element.active {
    outline: 2px solid #fdb913;
}

.banner-title-text {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    top: 20%;
    left: 10%;
}

.banner-subtitle-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    top: 40%;
    left: 10%;
}

.banner-product-image {
    width: 30%;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.banner-price-tag {
    position: absolute;
    background: #fdb913;
    color: #000;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 24px;
    bottom: 20%;
    right: 15%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mrp-cross {
    font-size: 0.6em;
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 8px;
}

.bg-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bg-option {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.2s;
}

.bg-option:hover {
    transform: scale(1.05);
}

.bg-option.active {
    border-color: #fdb913;
    box-shadow: 0 0 10px rgba(253, 185, 19, 0.5);
}

.studio-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid #e2e8f0;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.search-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f8fafc;
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.search-item-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.search-item-info p {
    font-size: 0.75rem;
    color: #64748b;
}

.studio-sidebar select,
.studio-sidebar input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.studio-sidebar input:focus {
    border-color: #fdb913;
}

.color-picker-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    box-shadow: 0 0 0 2px #fdb913;
}