/* ===============================
   QUOTE PAGE Redesign
   Modern Premium UI (Apple-inspired)
================================= */

#quote-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    /* Space for top nav + header */
    min-height: 100vh;
}

/* HEADER SECTION */
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.quote-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
}

.quote-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* FIXED ACTION BUTTON */
.quote-action-fixed {
    position: fixed;
    top: 75px;
    /* 60px (top nav) + 15px margin */
    right: 24px;
    z-index: 100;
}

.btn-primary-fixed {
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-fixed:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

/* QUOTE GRID */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* PRODUCT CARD */
.quote-item-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.quote-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-top {
    display: flex;
    gap: 20px;
}

.card-img-wrapper {
    width: 100px;
    height: 100px;
    background: var(--surface-dark);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.card-id {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: monospace;
}

/* FORM FIELDS */
.card-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-modern {
    background: var(--surface-dark);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-modern:focus {
    outline: none;
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(166, 105, 48, 0.1);
}

textarea.input-modern {
    min-height: 80px;
    resize: none;
}

/* CARD ACTIONS */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #fee2e2;
}

.btn-view-details {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* EMPTY STATE */
.empty-selection {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 32px;
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--text-light);
}

.empty-text {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-browse {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(166, 105, 48, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #quote-page {
        padding-top: 80px;
        padding-bottom: 120px;
        /* Space for mobile floating button if needed */
    }

    .quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quote-header h1 {
        font-size: 2.2rem;
    }

    .quote-action-fixed {
        position: fixed;
        top: auto;
        bottom: 80px;
        /* Above bottom nav */
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }

    .btn-primary-fixed {
        width: 100%;
        justify-content: center;
        padding: 18px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }
}