@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Manrope:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body .bracelet-configurator-wrapper {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    --brand-primary: #0f766e;
    --brand-primary-dark: #0b5f57;
    --brand-secondary: #f59e0b;
    --text-primary: #1f2a32;
    --text-secondary: #4b5a66;
    --background-light: #f5f1ec;
    --background-white: #ffffff;
    --surface-muted: #fdf9f4;
    --border-color: #e3ddd6;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
}

/* Focus mode: hide third-party floating widgets (chat/help launchers) over configurator */
body.bracelet-configurator-active #crisp-chatbox,
body.bracelet-configurator-active .intercom-lightweight-app,
body.bracelet-configurator-active #intercom-container,
body.bracelet-configurator-active .zEWidget-launcher,
body.bracelet-configurator-active .zEWidget-webWidget,
body.bracelet-configurator-active #fc_frame,
body.bracelet-configurator-active .fc-widget-normal,
body.bracelet-configurator-active .fc-widget-open,
body.bracelet-configurator-active #tidio-chat,
body.bracelet-configurator-active .tidio-chat,
body.bracelet-configurator-active .tawk-min-container,
body.bracelet-configurator-active .tawk-button,
body.bracelet-configurator-active #chat-widget-container,
body.bracelet-configurator-active [id*="chat-widget"],
body.bracelet-configurator-active [class*="chat-widget"],
body.bracelet-configurator-active iframe[src*="crisp.chat"],
body.bracelet-configurator-active iframe[src*="intercom"],
body.bracelet-configurator-active iframe[src*="zendesk"],
body.bracelet-configurator-active iframe[src*="freshchat"],
body.bracelet-configurator-active iframe[src*="tidio"],
body.bracelet-configurator-active iframe[src*="tawk.to"],
body.bracelet-configurator-active iframe[src*="chatwoot"],
body.bracelet-configurator-active iframe[src*="livechat"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.bracelet-configurator-active .bracelet-configurator-wrapper {
    position: relative;
}

body.bracelet-configurator-active .bracelet-configurator-suppressed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 1023px) {
    body.bracelet-configurator-active {
        overflow-x: hidden;
    }

    body.bracelet-configurator-active .bracelet-configurator-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    body.bracelet-configurator-active .bracelet-configurator-wrapper .container {
        height: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-and-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-in-and-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bracelet-configurator-wrapper .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px;
}

.bracelet-configurator-wrapper .configurator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: radial-gradient(1200px 500px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 60%),
        radial-gradient(900px 400px at 110% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
        var(--background-light);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(31, 42, 50, 0.12);
    overflow: hidden;
}

/* Canvas Section */
.bracelet-configurator-wrapper .canvas-section {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .canvas-container {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 320px;
    background:
        radial-gradient(120% 120% at 10% 10%, rgba(255, 255, 255, 0.8), transparent 50%),
        radial-gradient(80% 80% at 90% 20%, rgba(15, 118, 110, 0.12), transparent 45%),
        linear-gradient(135deg, #f9f6f1 0%, #e8e2d9 100%);
}

.bracelet-configurator-wrapper #bracelet-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.bracelet-configurator-wrapper .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--brand-primary);
    font-weight: 600;
    display: none;
}

.bracelet-configurator-wrapper .loading.active {
    display: block;
}

.bracelet-configurator-wrapper .canvas-quick-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1100;
    pointer-events: auto;
    display: flex;
    visibility: visible;
    opacity: 1;
}

.bracelet-configurator-wrapper .canvas-quick-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(31, 42, 50, 0.14);
    visibility: visible;
    opacity: 1;
}

.bracelet-configurator-wrapper .canvas-quick-btn:hover {
    color: var(--brand-primary);
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
}

/* Canvas History Controls */
.bracelet-configurator-wrapper .canvas-history-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    pointer-events: auto;
}

.bracelet-configurator-wrapper .canvas-history-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(31, 42, 50, 0.14);
}

.bracelet-configurator-wrapper .canvas-history-btn:hover:not(:disabled) {
    color: var(--brand-primary);
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
}

.bracelet-configurator-wrapper .canvas-history-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Ensure inline SVG icons inside history/toolbar buttons are visible
   (some themes set svg stroke/colors globally). Force stroke to currentColor */
.bracelet-configurator-wrapper .canvas-history-btn svg,
.bracelet-configurator-wrapper .history-btn svg,
.bracelet-configurator-wrapper .toolbar-btn svg,
.bracelet-configurator-wrapper .mobile-toolbar-btn svg {
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

.bracelet-configurator-wrapper .canvas-history-btn svg *,
.bracelet-configurator-wrapper .history-btn svg *,
.bracelet-configurator-wrapper .toolbar-btn svg *,
.bracelet-configurator-wrapper .mobile-toolbar-btn svg * {
    stroke: currentColor !important;
    fill: none !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1 !important;
    visibility: visible !important;
    vector-effect: non-scaling-stroke;
}

.bracelet-configurator-wrapper .canvas-history-btn svg,
.bracelet-configurator-wrapper .toolbar-btn svg {
    width: 20px;
    height: 20px;
}

/* Floating Toolbar */
.bracelet-configurator-wrapper .floating-toolbar {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(31, 42, 50, 0.18);
    padding: 8px;
    z-index: 1000;
    pointer-events: auto;
    flex-direction: row;
    animation: fadeIn 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: calc(100% - 24px);
}

.bracelet-configurator-wrapper .toolbar-item-info {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    border-right: 1px solid rgba(15, 118, 110, 0.15);
}

.bracelet-configurator-wrapper .toolbar-item-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(31, 42, 50, 0.25);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: none;
}

.bracelet-configurator-wrapper .toolbar-item-text {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.bracelet-configurator-wrapper .toolbar-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: var(--background-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bracelet-configurator-wrapper .toolbar-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.25);
}

.bracelet-configurator-wrapper .toolbar-btn:active {
    transform: translateY(0) scale(1);
}

/* Controls Panel */
.bracelet-configurator-wrapper .controls-panel {
    padding: 16px;
    background: var(--surface-muted);
    overflow-y: auto;
}

.bracelet-configurator-wrapper .mobile-flow-hint {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(15, 118, 110, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.bracelet-configurator-wrapper .mobile-step-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bracelet-configurator-wrapper .mobile-step-nav::-webkit-scrollbar {
    display: none;
}

.bracelet-configurator-wrapper .step-chip {
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: var(--background-white);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    padding: 7px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracelet-configurator-wrapper .step-chip.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* Info Card */
.bracelet-configurator-wrapper .info-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(227, 221, 214, 0.8);
    box-shadow: 0 8px 24px rgba(31, 42, 50, 0.06);
}

.bracelet-configurator-wrapper .model-name {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.bracelet-configurator-wrapper .info-row {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.bracelet-configurator-wrapper .price-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.bracelet-configurator-wrapper .info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(227, 221, 214, 0.8);
}

.bracelet-configurator-wrapper .price-note.price-note-inline {
    margin: 0 2px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}

.bracelet-configurator-wrapper .info-item-length {
    align-items: flex-start;
}

.bracelet-configurator-wrapper .length-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bracelet-configurator-wrapper .length-unit {
    font-weight: 600;
}

.bracelet-configurator-wrapper .max-length {
    font-size: 12px;
    color: #5b4ab5;
    line-height: 1.35;
    text-align: right;
}

.bracelet-configurator-wrapper .size-guide-trigger {
    margin-top: 2px;
    margin-left: auto;
    border: 1px solid rgba(91, 74, 181, 0.25);
    background: rgba(91, 74, 181, 0.08);
    color: #5b4ab5;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.bracelet-configurator-wrapper .size-guide-trigger:hover {
    background: rgba(91, 74, 181, 0.14);
    border-color: rgba(91, 74, 181, 0.35);
}

.bracelet-configurator-wrapper .size-guide-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bracelet-configurator-wrapper .size-guide-modal {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bracelet-configurator-wrapper .size-guide-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: min(860px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.bracelet-configurator-wrapper .size-guide-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .size-guide-modal-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.bracelet-configurator-wrapper .size-guide-modal-body {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bracelet-configurator-wrapper .size-guide-image {
    display: block;
    max-width: 100%;
    max-height: calc(88vh - 64px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    object-fit: contain;
}

.bracelet-configurator-wrapper .info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.bracelet-configurator-wrapper .info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.bracelet-configurator-wrapper .price-value {
    font-size: 22px;
    color: var(--brand-primary);
    font-weight: 700;
}

.bracelet-configurator-wrapper .length-progress {
    margin: 12px 0;
}

.bracelet-configurator-wrapper .info-pill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.bracelet-configurator-wrapper .info-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.24);
}

.bracelet-configurator-wrapper .info-pill-subtle {
    color: var(--text-secondary);
    background: rgba(47, 59, 69, 0.08);
    border-color: rgba(47, 59, 69, 0.16);
}

.bracelet-configurator-wrapper .history-controls {
    display: flex;
    gap: 10px;
    margin: 10px 0 12px;
}

.bracelet-configurator-wrapper .history-btn {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: var(--background-white);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracelet-configurator-wrapper .history-btn:hover:not(:disabled) {
    color: var(--brand-primary);
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
}

.bracelet-configurator-wrapper .history-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bracelet-configurator-wrapper .progress-bar {
    width: 100%;
    height: 12px;
    background: #e7e1da;
    border-radius: 6px;
    overflow: hidden;
}

.bracelet-configurator-wrapper .progress-fill {
    height: 100%;
    background: var(--brand-primary);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0%;
}

.bracelet-configurator-wrapper .validation-message {
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    display: none;
    border: 1px solid transparent;
}

.bracelet-configurator-wrapper .validation-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
    display: block;
}

.bracelet-configurator-wrapper .validation-message.success {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
    display: block;
}

.bracelet-configurator-wrapper .validation-message.warning {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
    display: block;
}

.bracelet-configurator-wrapper .control-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .control-section.control-section-card {
    background: var(--background-white);
    border: 1px solid rgba(227, 221, 214, 0.85);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(31, 42, 50, 0.05);
    border-bottom: 1px solid rgba(227, 221, 214, 0.85);
}

.bracelet-configurator-wrapper .control-section:last-child {
    border-bottom: none;
}

.bracelet-configurator-wrapper .control-section h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fraunces', serif;
}

.bracelet-configurator-wrapper .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.bracelet-configurator-wrapper .section-header h2 {
    margin-bottom: 0;
}

.bracelet-configurator-wrapper .section-heading {
    margin-bottom: 14px;
}

.bracelet-configurator-wrapper .section-heading h2 {
    margin-bottom: 4px;
}

.bracelet-configurator-wrapper .section-heading p {
    font-size: 13px;
    color: var(--text-secondary);
}

.bracelet-configurator-wrapper .customer-template-section .catalog-item {
    min-height: 68px;
}

.bracelet-configurator-wrapper .item-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

.bracelet-configurator-wrapper .item-actions {
    margin-left: 10px;
    flex-shrink: 0;
}

.bracelet-configurator-wrapper .advanced-tools summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.bracelet-configurator-wrapper .advanced-tools summary::-webkit-details-marker {
    display: none;
}

.bracelet-configurator-wrapper .advanced-tools summary::after {
    content: '+';
    float: right;
    color: var(--brand-primary);
    font-size: 19px;
    line-height: 1;
}

.bracelet-configurator-wrapper .advanced-tools[open] summary::after {
    content: '−';
}

.bracelet-configurator-wrapper .advanced-tools-content {
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.bracelet-configurator-wrapper .control-subsection + .control-subsection {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

/* Tabs */
.bracelet-configurator-wrapper .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .tab-button {
    padding: 10px 16px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s;
}

.bracelet-configurator-wrapper .tab-button:hover {
    color: var(--brand-primary);
    background: rgba(15, 118, 110, 0.08);
}

.bracelet-configurator-wrapper .tab-button.active {
    color: var(--brand-primary);
    border-color: rgba(15, 118, 110, 0.25);
    background: rgba(15, 118, 110, 0.12);
}

.bracelet-configurator-wrapper .tab-content {
    display: none;
}

.bracelet-configurator-wrapper .tab-content.active {
    display: block;
}

/* Filter Controls */
.bracelet-configurator-wrapper .filter-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bracelet-configurator-wrapper .group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bracelet-configurator-wrapper .group-tab {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: var(--background-white);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracelet-configurator-wrapper .group-tab:hover {
    color: var(--brand-primary);
    border-color: rgba(15, 118, 110, 0.4);
    background: rgba(15, 118, 110, 0.08);
}

.bracelet-configurator-wrapper .group-tab.active {
    color: #ffffff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.bracelet-configurator-wrapper .search-input,
.bracelet-configurator-wrapper .group-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background-color: var(--background-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bracelet-configurator-wrapper .search-input:focus,
.bracelet-configurator-wrapper .group-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.bracelet-configurator-wrapper .group-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bracelet-configurator-wrapper .group-selector label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Catalog List */
.bracelet-configurator-wrapper .catalog-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-white);
}

.bracelet-configurator-wrapper .catalog-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s, border-left-color 0.2s;
    min-height: 84px;
}

.bracelet-configurator-wrapper .catalog-item:hover {
    background: #f4f0ea;
}

.bracelet-configurator-wrapper .catalog-item.selected {
    background: rgba(15, 118, 110, 0.08);
    border-left: 4px solid var(--brand-primary);
    padding-left: 12px;
}

.bracelet-configurator-wrapper .catalog-item:last-child {
    border-bottom: none;
}

.bracelet-configurator-wrapper .catalog-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f4f0ea;
    color: var(--text-secondary);
}

.bracelet-configurator-wrapper .catalog-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracelet-configurator-wrapper .catalog-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.bracelet-configurator-wrapper .catalog-item-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.bracelet-configurator-wrapper .benefits-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.bracelet-configurator-wrapper .benefits-badge {
    background: rgba(15, 118, 110, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(15, 118, 110, 0.2);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bracelet-configurator-wrapper .benefits-badges.compact .benefits-badge {
    font-size: 10px;
    padding: 3px 6px;
}

.bracelet-configurator-wrapper .benefits-badges.tiny .benefits-badge {
    font-size: 9px;
    padding: 2px 5px;
}

.bracelet-configurator-wrapper .benefits-badge-muted {
    background: rgba(47, 59, 69, 0.08);
    border-color: rgba(47, 59, 69, 0.2);
    color: var(--text-secondary);
}

.bracelet-configurator-wrapper .catalog-item-price {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
}

.bracelet-configurator-wrapper .catalog-item-actions {
    width: 92px;
    min-width: 92px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0;
}

.bracelet-configurator-wrapper .catalog-item-add-btn {
    display: none;
    width: 100%;
    height: 100%;
    border: 1px solid #15803d;
    background: #16a34a;
    color: #ffffff;
    border-radius: 10px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.bracelet-configurator-wrapper .catalog-item.selected .catalog-item-add-btn {
    display: flex;
}

.bracelet-configurator-wrapper .catalog-item.selected .catalog-item-price {
    display: none;
}

.bracelet-configurator-wrapper .catalog-item-add-btn:hover {
    background: #15803d;
    border-color: #166534;
}

.bracelet-configurator-wrapper .catalog-item-add-label {
    font-size: 12px;
    font-weight: 800;
}

.bracelet-configurator-wrapper .catalog-item-add-price {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.92;
}

.bracelet-configurator-wrapper .info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.bracelet-configurator-wrapper .info-icon:hover {
    background: var(--brand-primary-dark);
}

/* Group Headers */
.bracelet-configurator-wrapper .group-header {
    background: #f1ece6;
    padding: 8px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.bracelet-configurator-wrapper .group-header:first-child {
    border-top: none;
}

.bracelet-configurator-wrapper .group-header:hover {
    background: #e9e3dc;
}

.bracelet-configurator-wrapper .group-header .group-count {
    color: var(--brand-secondary);
    font-weight: 500;
}

.bracelet-configurator-wrapper .group-content.collapsed {
    display: none;
}

/* Size Selection */
.bracelet-configurator-wrapper .size-selection {
    margin-top: 16px;
    padding: 16px;
    background: #f3efe9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
    animation: slide-in-and-fade 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bracelet-configurator-wrapper .size-selection label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Items List */
.bracelet-configurator-wrapper .items-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-white);
}

.bracelet-configurator-wrapper .empty-state {
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.bracelet-configurator-wrapper .item-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s, border-left-color 0.2s;
    animation: slide-in-and-fade 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    animation-fill-mode: forwards;
    position: relative;
    padding-right: 48px;
}

.bracelet-configurator-wrapper .item-row:hover {
    background: #f4f0ea;
}

.bracelet-configurator-wrapper .item-row.selected {
    background: rgba(15, 118, 110, 0.08);
    border-left: 4px solid var(--brand-primary);
    padding-left: 8px;
}

.bracelet-configurator-wrapper .item-row:last-child {
    border-bottom: none;
}

.bracelet-configurator-wrapper .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bracelet-configurator-wrapper .item-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bracelet-configurator-wrapper .item-info {
    flex: 1;
    font-size: 13px;
}

.bracelet-configurator-wrapper .item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.bracelet-configurator-wrapper .item-details {
    color: var(--text-secondary);
    font-size: 12px;
}

.bracelet-configurator-wrapper .item-index {
    color: #a0aec0;
    font-size: 12px;
    margin-left: 12px;
}

.bracelet-configurator-wrapper .item-delete-btn {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(244, 67, 54, 0.2);
    background: rgba(244, 67, 54, 0.08);
    color: #c62828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracelet-configurator-wrapper .item-delete-btn:hover {
    background: rgba(244, 67, 54, 0.18);
    border-color: rgba(244, 67, 54, 0.4);
    transform: translateY(-1px);
}

/* Buttons */
.bracelet-configurator-wrapper .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    line-height: 1.2;
}

.bracelet-configurator-wrapper .btn.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
}

.bracelet-configurator-wrapper .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bracelet-configurator-wrapper .btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.bracelet-configurator-wrapper .btn-primary:hover:not(:disabled) {
    background-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.24);
}

.bracelet-configurator-wrapper .btn-secondary {
    background-color: #2f3b45;
    color: white;
}

.bracelet-configurator-wrapper .btn-secondary:hover:not(:disabled) {
    background-color: #1f2a32;
    transform: translateY(-2px);
}

.bracelet-configurator-wrapper .btn-success {
    background-color: var(--success-color);
    color: white;
    width: 100%;
}

.bracelet-configurator-wrapper .btn-success.btn-large {
    padding: 16px;
    font-size: 15px;
}

.bracelet-configurator-wrapper .btn-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Modal */
.bracelet-configurator-wrapper .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bracelet-configurator-wrapper .modal-content {
    background: var(--background-white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(31, 42, 50, 0.22);
    border: 1px solid var(--border-color);
    animation: fade-and-scale-in 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bracelet-configurator-wrapper .modal-content.modal-small {
    max-width: 400px;
}

.bracelet-configurator-wrapper .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .modal-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bracelet-configurator-wrapper .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.bracelet-configurator-wrapper .modal-close:hover {
    background: #edf2f7;
    color: var(--text-primary);
}

.bracelet-configurator-wrapper .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.bracelet-configurator-wrapper .modal-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f3efe9;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.bracelet-configurator-wrapper .modal-tab-button {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracelet-configurator-wrapper .modal-tab-button:hover {
    color: var(--brand-primary);
    background: rgba(15, 118, 110, 0.1);
}

.bracelet-configurator-wrapper .modal-tab-button.active {
    color: #ffffff;
    background: var(--brand-primary);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.bracelet-configurator-wrapper .modal-tab-content {
    display: none;
}

.bracelet-configurator-wrapper .modal-tab-content.active {
    display: block;
}

.bracelet-configurator-wrapper .modal-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bracelet-configurator-wrapper .modal-catalog-list {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-white);
}

.bracelet-configurator-wrapper .modal-size-selection {
    margin-top: 16px;
    padding: 16px;
    background: #f3efe9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.bracelet-configurator-wrapper .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: #f4f0ea;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Benefits Modal */
.bracelet-configurator-wrapper .benefits-price {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.bracelet-configurator-wrapper .benefits-list {
    display: grid;
    gap: 10px;
}

.bracelet-configurator-wrapper .benefits-list li {
    list-style: none;
    background: #f6f2ed;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Design JSON */
.bracelet-configurator-wrapper #design-json {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    margin-top: 12px;
}

/* Texture Test Bar */
.bracelet-configurator-wrapper .debug-panel {
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 14px;
    background: #f8f4ee;
}

.bracelet-configurator-wrapper .debug-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bracelet-configurator-wrapper .debug-panel-content {
    margin-top: 10px;
}

.bracelet-configurator-wrapper .debug-panel-content.collapsed {
    display: none;
}

.bracelet-configurator-wrapper .debug-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.bracelet-configurator-wrapper .debug-control {
    display: grid;
    grid-template-columns: 130px 1fr 48px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.bracelet-configurator-wrapper .debug-control input[type="range"] {
    width: 100%;
}

.bracelet-configurator-wrapper .debug-actions {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}

.bracelet-configurator-wrapper #debug-code {
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    background: #fff;
}

/* Error Overlay */
.bracelet-configurator-wrapper .error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.bracelet-configurator-wrapper .error-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Saved Designs */
.bracelet-configurator-wrapper .saved-designs-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-white);
}

.bracelet-configurator-wrapper .saved-design-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.bracelet-configurator-wrapper .saved-design-row:hover {
    background-color: #f4f0ea;
}

/* Form Input */
.bracelet-configurator-wrapper .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    margin-top: 8px;
}

.bracelet-configurator-wrapper .form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

/* Mobile Edit Menu */
.mobile-edit-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(31, 42, 50, 0.18);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1500;
    display: none; /* Hidden on desktop */
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-edit-menu.visible {
    transform: translateY(0);
}

.mobile-edit-menu-content {
    padding: 16px;
}

.mobile-edit-menu-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mobile-edit-menu-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-edit-menu-info p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-edit-menu-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.mobile-edit-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-edit-menu-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-white);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-toolbar-btn:hover {
    background: #f4f0ea;
    color: var(--text-primary);
}

.mobile-toolbar-btn.danger {
    color: var(--danger-color);
}

.mobile-toolbar-btn.danger:hover {
    background: #fed7d7;
    border-color: #fed7d7;
}

.bracelet-configurator-wrapper .mobile-sticky-checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(31, 42, 50, 0.14);
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
}

.bracelet-configurator-wrapper .mobile-sticky-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bracelet-configurator-wrapper .mobile-sticky-price {
    color: var(--brand-primary);
    font-size: 18px;
    font-weight: 800;
}

.bracelet-configurator-wrapper .mobile-sticky-length {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.bracelet-configurator-wrapper .mobile-sticky-btn {
    width: auto;
    margin-left: auto;
    padding: 12px 20px;
    font-size: 14px;
}

.bracelet-configurator-wrapper .mobile-sticky-edit {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.bracelet-configurator-wrapper .mobile-sticky-checkout.edit-mode .mobile-sticky-summary,
.bracelet-configurator-wrapper .mobile-sticky-checkout.edit-mode .mobile-sticky-btn {
    display: none;
}

.bracelet-configurator-wrapper .mobile-sticky-checkout.edit-mode .mobile-sticky-edit {
    display: flex;
}

.bracelet-configurator-wrapper .mobile-sticky-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bracelet-configurator-wrapper .mobile-sticky-edit-item {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracelet-configurator-wrapper .mobile-sticky-close-btn {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--background-white);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.bracelet-configurator-wrapper .mobile-sticky-edit-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bracelet-configurator-wrapper .mobile-sticky-edit-actions .mobile-toolbar-btn {
    padding: 9px 6px;
    border-radius: 10px;
    gap: 4px;
    font-size: 11px;
}


/* Responsive */
@media (max-width: 1023px) {
    .bracelet-configurator-wrapper .container {
        padding: 0;
    }

    .bracelet-configurator-wrapper .configurator-wrapper {
        height: auto;
        max-height: none;
        border-radius: 0;
        overflow: visible;
    }

    .bracelet-configurator-wrapper .canvas-section {
        position: sticky;
        top: 0;
        z-index: 20;
        flex-shrink: 0;
    }

    /* Hide desktop toolbar on mobile */
    .bracelet-configurator-wrapper .floating-toolbar {
        display: none !important; /* Use important to override inline style */
    }
    .mobile-edit-menu {
        display: none !important;
    }
    .bracelet-configurator-wrapper .controls-panel {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
        padding-bottom: 180px;
    }
    .bracelet-configurator-wrapper .canvas-container {
        height: clamp(260px, 42dvh, 420px);
        min-height: 260px;
    }
    .bracelet-configurator-wrapper .mobile-sticky-checkout {
        display: flex;
    }
}

@media (max-width: 640px) {
    .bracelet-configurator-wrapper .model-name {
        font-size: 22px;
    }
    .bracelet-configurator-wrapper .price-value {
        font-size: 20px;
    }
    .bracelet-configurator-wrapper .info-row {
        gap: 8px;
    }
    .bracelet-configurator-wrapper .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px;
    }
    .bracelet-configurator-wrapper .length-meta {
        align-items: flex-start;
    }
    .bracelet-configurator-wrapper .max-length {
        text-align: left;
    }
    .bracelet-configurator-wrapper .size-guide-trigger {
        margin-left: 0;
        align-self: flex-start;
    }
    .bracelet-configurator-wrapper .controls-panel {
        padding: 14px;
    }
    .bracelet-configurator-wrapper .mobile-flow-hint {
        margin-bottom: 10px;
        font-size: 12px;
    }
    .bracelet-configurator-wrapper .control-section.control-section-card {
        padding: 12px;
        border-radius: 14px;
    }
    .bracelet-configurator-wrapper .section-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .bracelet-configurator-wrapper .catalog-list,
    .bracelet-configurator-wrapper .items-list,
    .bracelet-configurator-wrapper .saved-designs-list {
        max-height: 220px;
    }
    .bracelet-configurator-wrapper .benefits-badges {
        gap: 4px;
    }
    .bracelet-configurator-wrapper .benefits-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    .bracelet-configurator-wrapper .stone-thumb {
        width: 32px;
        height: 32px;
    }
    .bracelet-configurator-wrapper .catalog-item {
        min-height: 78px;
    }
    .bracelet-configurator-wrapper .mobile-sticky-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* DESKTOP STYLES */
@media (min-width: 1024px) {
    .bracelet-configurator-wrapper .container {
        padding: 20px;
    }

    .bracelet-configurator-wrapper .configurator-wrapper {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 20px;
        border-radius: 16px;
        overflow: visible;
        align-items: start;
    }

    .bracelet-configurator-wrapper .canvas-section {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        align-self: start;
    }
    
    .bracelet-configurator-wrapper .canvas-container {
        height: 700px;
    }
    
    .bracelet-configurator-wrapper .controls-panel {
        max-height: none;
        padding: 24px;
        overflow: visible;
    }
    
    .bracelet-configurator-wrapper .mobile-flow-hint,
    .bracelet-configurator-wrapper .mobile-step-nav {
        display: none;
    }

    .bracelet-configurator-wrapper .info-card {
        padding: 20px;
        margin-bottom: 24px;
    }

    .bracelet-configurator-wrapper .model-name {
        font-size: 24px;
    }
}

/* Catalog Enhancements */
.bracelet-configurator-wrapper .group-header {
    position: relative;
}

.bracelet-configurator-wrapper .group-header.collapsible::after {
    content: '›';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 24px;
    color: var(--brand-secondary);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bracelet-configurator-wrapper .group-header.collapsible.collapsed::after {
    transform: translateY(-50%) rotate(0deg);
}

.bracelet-configurator-wrapper .zodiac-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
}

.bracelet-configurator-wrapper .zodiac-card .zodiac-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bracelet-configurator-wrapper .zodiac-card .catalog-item {
    border-bottom: 1px dashed #e3ddd6;
}
.bracelet-configurator-wrapper .zodiac-card .catalog-item:last-child {
    border-bottom: none;
}
.bracelet-configurator-wrapper .stone-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(31, 42, 50, 0.2);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(31, 42, 50, 0.12);
}

.bracelet-configurator-wrapper .catalog-item.disabled .stone-thumb {
    filter: grayscale(1);
    opacity: 0.7;
}
