/* ============================================
   INSTANT QUOTE CALCULATOR
   Exact match to Shopify techpack-v11-calculator-redesign.css
   Using Website Redesign design system colors
   ============================================ */

/* ============================================
   GLOBAL FIXES
   ============================================ */

html.calculator-page,
body.calculator-page {
    overflow-x: hidden;
    /* Allow vertical scrolling for footer */
}

/* Hide Enter Studio button from header on this page only */
body.calculator-page .header__studio-btn {
    display: none !important;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.calculator-redesign {
    position: relative;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    z-index: 100;
    margin-left: var(--sidebar-width, 280px);
    margin-right: var(--collection-width, 320px);
    transition: margin 0.3s ease;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.calculator-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

[data-theme="light"] .calculator-main {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Custom scrollbar styling */
.calculator-main::-webkit-scrollbar {
    width: 8px;
}

.calculator-main::-webkit-scrollbar-track {
    background: transparent;
}

.calculator-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

[data-theme="light"] .calculator-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

.calculator-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .calculator-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 50px 50px;
}

/* ============================================
   SECTIONS - Numbered with line dividers
   ============================================ */

.calc-section {
    margin-bottom: 36px;
}

.calc-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.calc-section__number {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.calc-section__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.calc-section__line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.calc-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* ============================================
   GARMENT GRID
   ============================================ */

.garment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

.garment-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.garment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
    transition: all 0.15s;
    position: absolute;
    top: 0;
    left: 0;
}

.garment-card__name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.15s;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 20px 4px 8px;
    z-index: 2;
}

.garment-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.15s;
}

.garment-card__check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.garment-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

[data-theme="light"] .garment-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

.garment-card:hover img {
    opacity: 1;
}

.garment-card:hover .garment-card__name {
    color: #fff;
}

/* Selected state */
.garment-card.selected {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .garment-card.selected {
    border-color: rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.06);
}

.garment-card.selected img {
    opacity: 1;
}

.garment-card.selected .garment-card__name {
    color: #fff;
}

.garment-card.selected .garment-card__check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   FABRIC BUTTONS
   ============================================ */

.fabric-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

[data-theme="light"] .btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.18);
}

.btn.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-primary);
}

[data-theme="light"] .btn.selected {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.28);
}

.btn--compact {
    padding: 10px 16px;
    font-size: 12px;
}

/* Back and Change buttons */
.btn--back,
.btn--change {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
}

.btn--back:hover,
.btn--change:hover {
    background: var(--glass-bg);
    color: var(--text-secondary);
}

.btn--back svg,
.btn--change svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* ============================================
   SELECT DROPDOWN
   ============================================ */

.select {
    padding: 12px 40px 12px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 140px;
    font-family: inherit;
}

[data-theme="light"] .select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* Native select styling */
select {
    padding: 10px 36px 10px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background-color: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: inherit;
    transition: all 0.12s ease;
}

[data-theme="light"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

select:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] select:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background-color: rgba(0, 0, 0, 0.05);
}

select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* ============================================
   SPECS ROW
   ============================================ */

.specs-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.spec-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-group__label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.spec-group__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   FINISHING GRID
   ============================================ */

.finishing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.finishing-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.finishing-group__label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.finishing-group__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ============================================
   EMBELLISHMENTS
   ============================================ */

.embellishment-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
}

.btn-add:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--glass-bg);
    color: var(--text-secondary);
}

[data-theme="light"] .btn-add:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

.btn-add svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Embellishments List */
.embellishments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.embellishments-list:empty {
    display: none;
}

.emb-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.emb-item__number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--glass-bg);
    border-radius: 8px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.emb-item__method {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 110px;
}

.emb-item__fields {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.emb-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emb-field__label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.emb-field__select {
    padding: 10px 36px 10px 14px;
    font-size: 13px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    min-width: 90px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.12s ease;
}

[data-theme="light"] .emb-field__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.emb-field__select:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .emb-field__select:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background-color: rgba(0, 0, 0, 0.05);
}

.emb-field__select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.emb-field--size .emb-field__select {
    min-width: 100px;
}

.emb-item__delete {
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.12s;
    flex-shrink: 0;
}

.emb-item__delete:hover {
    opacity: 1;
    color: #ef4444;
}

/* ============================================
   LEGACY BOTTOM BAR (No longer used - kept for reference)
   The quantity slider is now in Section 6 inline
   ============================================ */

/* .bottom-bar - REMOVED FROM HTML */

/* Left: Metrics */
.bottom-metrics {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.metric__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.metric__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Total metric styling */
.metric--total {
    padding-left: 20px;
    border-left: 1px solid var(--glass-border);
}

.metric--total .metric__value {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

/* Center: Quantity Slider (30% width, centered) */
.quantity-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 0 0 30%;
}

.quantity-section__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.quantity-slider {
    flex: 1;
    min-width: 150px;
    max-width: 300px;
    height: 6px;
    border-radius: 3px;
    background: var(--glass-border);
    appearance: none;
    cursor: pointer;
}

.quantity-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quantity-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 75px;
}

.quantity-display__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.quantity-display__unit {
    font-size: 11px;
    color: var(--text-muted);
}

/* CTA Buttons */
.cta-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cta {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.12s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta--primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
}

.btn-cta--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-cta--secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    font-size: 13px;
}

.btn-cta--secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

[data-theme="light"] .btn-cta--secondary:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

/* ============================================
   DISABLED STATE
   ============================================ */

.calc-section--disabled {
    opacity: 0.3;
    pointer-events: none;
}

.calc-section--disabled .calc-section__number {
    background: transparent;
}

/* ============================================
   PLACEHOLDER TEXT
   ============================================ */

.placeholder-text {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
}

/* ============================================
   QUOTE BREAKDOWN SIDEBAR - Premium Redesign
   ============================================ */

.quote-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 280px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

[data-theme="light"] .quote-sidebar {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

/* COLLAPSED STATE */
.quote-sidebar.collapsed {
    width: 48px;
}

.quote-sidebar.collapsed .quote-sidebar__label,
.quote-sidebar.collapsed .quote-hero,
.quote-sidebar.collapsed .quote-breakdown,
.quote-sidebar.collapsed .quote-volume,
.quote-sidebar.collapsed .quote-total {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

/* Keep header and toggle fully interactive when collapsed */
.quote-sidebar.collapsed .quote-sidebar__header {
    pointer-events: auto !important;
    justify-content: center;
    padding: 10px;
    border-bottom: none;
}

/* Ensure toggle button is ALWAYS visible and clickable */
.quote-sidebar.collapsed .quote-sidebar__toggle {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 200;
}

/* ============================================
   SIDEBAR HEADER
   ============================================ */

.quote-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.quote-sidebar__toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quote-sidebar__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .quote-sidebar__toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.quote-sidebar__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.quote-sidebar.collapsed .quote-sidebar__toggle svg {
    transform: rotate(180deg);
}

.quote-sidebar__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: opacity 0.2s ease;
}

/* ============================================
   HERO UNIT PRICE
   ============================================ */

.quote-hero {
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
}

.quote-hero__price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    padding: 18px 28px;
    background: radial-gradient(
        ellipse at center,
        rgba(34, 197, 94, 0.06) 0%,
        transparent 70%
    );
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .quote-hero__price {
    background: radial-gradient(
        ellipse at center,
        rgba(34, 197, 94, 0.08) 0%,
        transparent 70%
    );
    border-color: rgba(34, 197, 94, 0.15);
}

.quote-hero__currency {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
    transition: color 0.3s ease;
}

.quote-hero__value {
    font-size: 34px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.quote-hero__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Hero Animation on price change */
.quote-hero--updated .quote-hero__price {
    transform: scale(1.06);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.12);
}

.quote-hero--updated .quote-hero__value {
    color: #22c55e;
}

.quote-hero--updated .quote-hero__currency {
    color: #22c55e;
}

/* ============================================
   BREAKDOWN TREE
   ============================================ */

.quote-breakdown {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    transition: opacity 0.2s ease;
}

.breakdown-tree {
    position: relative;
    padding-left: 20px;
}

/* Vertical connecting line */
.breakdown-tree::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(
        180deg,
        var(--glass-border) 0%,
        transparent 100%
    );
}

.breakdown-tree:empty::before,
.breakdown-tree:has(.breakdown-empty)::before {
    display: none;
}

/* Empty State */
.breakdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    margin-left: -20px;
}

.breakdown-empty svg {
    opacity: 0.3;
}

.breakdown-empty span {
    font-size: 11px;
    line-height: 1.4;
}

/* Breakdown Items - Tree Style */
.breakdown-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    transition: opacity 0.15s ease;
}

/* Branch connector */
.breakdown-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--glass-border);
}

/* Node dot */
.breakdown-item::after {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

[data-theme="light"] .breakdown-item::after {
    background: rgba(0, 0, 0, 0.08);
}

.breakdown-item--discount::after {
    background: #22c55e;
    border-color: #22c55e;
}

.breakdown-item__label {
    color: var(--text-secondary);
    flex: 1;
    font-size: 11px;
}

.breakdown-item__value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.breakdown-item--discount .breakdown-item__label,
.breakdown-item--discount .breakdown-item__value {
    color: #22c55e;
}

/* ============================================
   VOLUME PROGRESS - Minimal
   ============================================ */

.quote-volume {
    padding: 16px 20px;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.quote-volume__bar {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

[data-theme="light"] .quote-volume__bar {
    background: rgba(0, 0, 0, 0.06);
}

.quote-volume__fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.quote-volume__info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.quote-volume__badge {
    font-size: 10px;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.quote-volume__hint {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ============================================
   GRAND TOTAL BOX
   ============================================ */

.quote-total {
    margin: 12px 16px 16px;
    padding: 16px 18px;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.06) 0%,
        rgba(34, 197, 94, 0.02) 100%
    );
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

[data-theme="light"] .quote-total {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.08) 0%,
        rgba(34, 197, 94, 0.03) 100%
    );
    border-color: rgba(34, 197, 94, 0.15);
}

.quote-total__amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.quote-total__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.quote-total__value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #22c55e;
    transition: all 0.3s ease;
}

.quote-total__pieces {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    display: block;
}

/* Total glow effect on update */
.quote-total--updated {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.quote-total--updated .quote-total__value {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Sidebar active - shift main content */
body.calculator-page {
    --sidebar-width: 280px;
    --collection-width: 320px;
}

body.calculator-page.sidebar-collapsed {
    --sidebar-width: 48px;
}

body.calculator-page.collection-collapsed {
    --collection-width: 48px;
}

/* Sidebar width transition handled by padding-left in main rule */

/* ============================================
   COLLECTION PANEL (Right Sidebar)
   ============================================ */

.collection-panel {
    position: fixed;
    right: 0;
    top: 70px;
    bottom: 0;
    width: 320px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .collection-panel {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

/* Collapsed State */
.collection-panel.collapsed {
    width: 48px;
    overflow: hidden;
}

.collection-panel.collapsed .collection-panel__label,
.collection-panel.collapsed .collection-stats,
.collection-panel.collapsed .collection-view-toggle,
.collection-panel.collapsed .collection-items,
.collection-panel.collapsed .collection-total,
.collection-panel.collapsed .collection-fomo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.collection-panel.collapsed .collection-panel__header {
    pointer-events: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 10px;
    border-bottom: none;
}

.collection-panel.collapsed .collection-panel__toggle {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.collection-panel.collapsed .collection-panel__toggle svg {
    transform: rotate(180deg);
}

/* Collection Header */
.collection-panel__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.collection-panel__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: opacity 0.2s ease;
}

.collection-panel__toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.collection-panel__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .collection-panel__toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.collection-panel__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

/* Collection Stats */
.collection-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: opacity 0.2s ease;
}

.collection-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.collection-stats__value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.collection-stats__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.collection-stats__divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
}

/* View Toggle */
.collection-view-toggle {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    transition: opacity 0.2s ease;
}

.view-toggle__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle__btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.view-toggle__btn--active {
    color: var(--text-primary);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

[data-theme="light"] .view-toggle__btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Collection Items Container */
.collection-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    transition: opacity 0.2s ease;
}

/* Empty State */
.collection-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.collection-empty svg {
    opacity: 0.25;
}

.collection-empty span {
    font-size: 12px;
}

.collection-empty__hint {
    font-size: 10px !important;
    opacity: 0.7;
    line-height: 1.4;
}

/* Collection Item Card */
.collection-item {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.collection-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .collection-item:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.collection-item.excluded {
    opacity: 0.4;
}

.collection-item.excluded .collection-item__content {
    filter: grayscale(0.5);
}

/* Item Header with checkbox and title */
.collection-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
}

.collection-item__checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--glass-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.collection-item__checkbox:hover {
    border-color: #22c55e;
}

.collection-item__checkbox.checked {
    background: #22c55e;
    border-color: #22c55e;
}

.collection-item__checkbox.checked svg {
    opacity: 1;
}

.collection-item__checkbox svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.collection-item__garment {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.collection-item__img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
    flex-shrink: 0;
}

[data-theme="light"] .collection-item__img {
    background: rgba(0, 0, 0, 0.03);
}

.collection-item__title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-item__remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.collection-item__remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Item Content */
.collection-item__content {
    padding: 10px 12px;
}

.collection-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.collection-item__tag {
    font-size: 9px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-secondary);
}

[data-theme="light"] .collection-item__tag {
    background: rgba(0, 0, 0, 0.03);
}

/* Quantity Control */
.collection-item__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

[data-theme="light"] .collection-item__quantity {
    background: rgba(0, 0, 0, 0.02);
}

.collection-item__qty-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-item__qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.collection-item__qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.collection-item__qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.collection-item__qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.collection-item__qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .collection-item__qty-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.collection-item__qty-value {
    min-width: 50px;
    padding: 0 8px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .collection-item__qty-value {
    background: rgba(0, 0, 0, 0.02);
}

/* Item Footer with Price */
.collection-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.03);
    border-top: 1px solid rgba(34, 197, 94, 0.08);
}

.collection-item__unit-price {
    font-size: 10px;
    color: var(--text-muted);
}

.collection-item__unit-price span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.collection-item__total {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #22c55e;
}

/* Collection Grand Total */
.collection-total {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.collection-total__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.collection-total__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.collection-total__value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #22c55e;
}

.collection-total__actions {
    display: flex;
    gap: 8px;
}

.btn-collection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-collection--quote {
    flex: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
}

.btn-collection--quote:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-collection--quote:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-collection--clear {
    width: 38px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-collection--clear:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Add to Collection Button Enhancement */
.btn-cta--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-cta--primary svg {
    transition: transform 0.2s ease;
}

.btn-cta--primary:not(:disabled):hover svg {
    transform: rotate(90deg);
}

/* Animation for adding item */
@keyframes itemAdded {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.collection-item--new {
    animation: itemAdded 0.3s ease forwards;
}

/* Animated price updates */
.value-updated {
    animation: priceFlash 0.4s ease;
}

@keyframes priceFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: #22c55e; }
    100% { transform: scale(1); }
}

/* ============================================
   FOMO ELEMENTS
   ============================================ */

/* FOMO Banner */
.collection-fomo {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.collection-fomo__pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 100%
    );
    animation: fomoPulse 3s ease-in-out infinite;
}

@keyframes fomoPulse {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 1; }
}

.collection-fomo__content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.collection-fomo__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ef4444;
}

.collection-fomo__dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.collection-fomo__text {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Savings Hint */
.collection-total__savings {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    animation: savingsGlow 2s ease-in-out infinite alternate;
}

@keyframes savingsGlow {
    0% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.1); }
}

.collection-total__savings svg {
    flex-shrink: 0;
    color: #22c55e;
}

.collection-total__savings strong {
    color: #22c55e;
    font-weight: 700;
}

/* Enter Studio Button */
.btn-collection--studio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-collection--studio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-collection--studio:hover::before {
    opacity: 1;
}

.btn-collection--studio:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.35),
        0 0 40px rgba(139, 92, 246, 0.15);
}

.btn-collection__text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-collection__text svg {
    transition: transform 0.3s ease;
}

.btn-collection--studio:hover .btn-collection__text svg {
    transform: rotate(15deg) scale(1.1);
}

.btn-collection__arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-collection--studio:hover .btn-collection__arrow {
    transform: translateX(4px);
}

/* Studio button shine effect */
.btn-collection--studio::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: studioShine 3s ease-in-out infinite;
}

@keyframes studioShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Hint text */
.collection-total__hint {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ============================================
   RESPONSIVE - 1024px and below
   ============================================ */

@media (max-width: 1200px) {
    .calculator-container {
        max-width: 100%;
        padding: 30px 40px 40px;
    }

    /* Use collapsed widths for both sidebars at this breakpoint */
    .calculator-redesign {
        margin-left: 48px;
        margin-right: 48px;
    }

    .finishing-grid {
        gap: 24px;
    }

    /*
     * RESPONSIVE SIDEBAR BEHAVIOR:
     * Both sidebars start COLLAPSED by adding the class via JS on load
     * .collapsed = collapsed state (48px)
     * no .collapsed = expanded state (full width)
     * This matches desktop behavior so toggle works consistently
     */

    /* Quote Sidebar - Collapsed is default look, expanded when no .collapsed class */
    .quote-sidebar.collapsed {
        width: 48px;
    }

    .quote-sidebar.collapsed .quote-sidebar__label,
    .quote-sidebar.collapsed .quote-hero,
    .quote-sidebar.collapsed .quote-breakdown,
    .quote-sidebar.collapsed .quote-volume,
    .quote-sidebar.collapsed .quote-total {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .quote-sidebar.collapsed .quote-sidebar__header {
        justify-content: center;
        padding: 10px;
        border-bottom: none;
    }

    /* Arrow points right when collapsed */
    .quote-sidebar.collapsed .quote-sidebar__toggle svg {
        transform: rotate(180deg);
    }

    /* Collection panel - same logic */
    .collection-panel.collapsed {
        width: 48px;
    }

    .collection-panel.collapsed .collection-panel__label,
    .collection-panel.collapsed .collection-stats,
    .collection-panel.collapsed .collection-view-toggle,
    .collection-panel.collapsed .collection-items,
    .collection-panel.collapsed .collection-total,
    .collection-panel.collapsed .collection-fomo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .collection-panel.collapsed .collection-panel__header {
        flex-direction: column;
        justify-content: flex-start;
        padding: 14px 10px;
        border-bottom: none;
    }

    .collection-panel.collapsed .collection-panel__toggle svg {
        transform: rotate(180deg);
    }

}

@media (max-width: 1024px) {
    /* Hide sidebars on tablets and below */
    .quote-sidebar,
    .collection-panel {
        display: none;
    }

    /* Reset margins when sidebars are hidden */
    .calculator-redesign {
        margin-left: 0;
        margin-right: 0;
    }

    .garment-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .embellishment-actions {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .specs-row {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .calculator-redesign {
        margin-top: 60px;
    }

    .calculator-container {
        padding: 24px 20px 30px;
    }

    .calc-section {
        margin-bottom: 28px;
    }

    .calc-section__header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .calc-section__number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .calc-section__title {
        font-size: 11px;
    }

    .garment-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .garment-card {
        padding: 0;
        border-radius: 10px;
    }

    .garment-card__name {
        font-size: 8px;
        padding: 16px 2px 6px;
    }

    .garment-card__check {
        width: 18px;
        height: 18px;
        top: 4px;
        right: 4px;
    }

    .fabric-buttons {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 8px;
    }

    .btn--compact {
        padding: 8px 12px;
        font-size: 10px;
    }

    .select {
        padding: 10px 32px 10px 14px;
        font-size: 11px;
        min-width: 110px;
    }

    .specs-row {
        gap: 20px;
    }

    .spec-group {
        gap: 8px;
    }

    .spec-group__label {
        font-size: 9px;
    }

    .finishing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .finishing-group__label {
        font-size: 10px;
    }

    .embellishment-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .btn-add {
        padding: 10px 12px;
        font-size: 10px;
        gap: 6px;
    }

    .btn-add svg {
        width: 10px;
        height: 10px;
    }

    .emb-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .emb-item__fields {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .emb-field__select {
        padding: 8px 10px;
        font-size: 11px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 20px 16px 24px;
    }

    .garment-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .embellishment-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .calculator-cta {
        flex-direction: column;
    }
}

/* ============================================
   INLINE QUANTITY SLIDER (Section 6)
   ============================================ */

.quantity-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    padding: 30px 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.quantity-inline__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.quantity-inline .quantity-slider {
    flex: 1;
    min-width: 200px;
    max-width: 500px;
    height: 6px;
    border-radius: 3px;
    background: var(--glass-border);
    appearance: none;
    cursor: pointer;
}

.quantity-inline .quantity-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quantity-inline .quantity-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 90px;
}

.quantity-inline .quantity-display__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.quantity-inline .quantity-display__unit {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   CALCULATOR CTA SECTION
   ============================================ */

.calculator-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 50px 0;
}

.calculator-cta .btn-cta {
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.calculator-cta .btn-cta--primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
}

.calculator-cta .btn-cta--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .calculator-cta .btn-cta--primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.calculator-cta .btn-cta--secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.calculator-cta .btn-cta--secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

[data-theme="light"] .calculator-cta .btn-cta--secondary:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

/* ============================================
   UNIFIED FOOTER - CALCULATOR PAGE
   ============================================ */

.unified-footer--calculator {
    /* Footer is outside calculator-redesign, so it's naturally full width */
    /* No offset needed - it's not affected by the sidebar margin */
    position: relative;
    z-index: 50;
}

/* Responsive adjustments for quantity inline */
@media (max-width: 768px) {
    .quantity-inline {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }

    .quantity-inline .quantity-slider {
        width: 100%;
        max-width: 100%;
    }

    .calculator-cta {
        flex-direction: column;
        padding: 30px 20px;
    }

    .calculator-cta .btn-cta {
        width: 100%;
    }
}

