/* ========================================
   PRODUCT ADD-ON SERVICES
   Service cards on product detail page
   ======================================== */

/* ── Section Header ── */
.addon-services-section {
    margin-top: 32px;
    margin-bottom: 24px;
}

.addon-services-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

.addon-services-section .section-header i {
    font-size: 20px;
    color: #FF6900;
}

.addon-services-section .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.addon-services-section .section-header .badge {
    background: #FF6900;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ── Category Tab Pills ── */
.addon-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.addon-tab {
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.addon-tab:hover {
    border-color: #FF6900;
    color: #FF6900;
}

.addon-tab.active {
    background: #FF6900;
    color: #fff;
    border-color: #FF6900;
}

/* ── Service Card Grid ── */
.addon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.addon-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
}

.addon-card:hover {
    border-color: #ffcba0;
    background: #fffaf5;
}

.addon-card.selected {
    border-color: #FF6900;
    background: #fff8f2;
}

.addon-card.selected .addon-check {
    background: #FF6900;
    border-color: #FF6900;
    color: #fff;
}

.addon-card.contact-only {
    border-style: dashed;
}

/* Check circle */
.addon-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    margin-top: 2px;
}

/* Icon */
.addon-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.15s, color 0.15s;
}

.addon-card[data-category="setup"] .addon-icon {
    background: #e8f5e9;
    color: #43a047;
}

.addon-card[data-category="support"] .addon-icon {
    background: #e3f2fd;
    color: #1e88e5;
}

.addon-card[data-category="custom"] .addon-icon {
    background: #fce4ec;
    color: #e53935;
}

.addon-card.selected .addon-icon {
    background: #FF6900;
    color: #fff;
}

/* Card body */
.addon-body {
    flex: 1;
    min-width: 0;
}

.addon-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    line-height: 1.3;
}

.addon-body p {
    font-size: 12px;
    color: #888;
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.addon-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF6900;
}

.addon-price.contact {
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}

.addon-time {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.addon-time i {
    font-size: 10px;
}

/* ── Total Summary Bar ── */
.addon-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-top: 14px;
    background: #1a1a2e;
    border-radius: 8px;
    color: #fff;
}

.addon-summary .summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.addon-summary .summary-left i {
    font-size: 16px;
    color: #FF6900;
}

.addon-summary .summary-left .count {
    font-weight: 600;
    color: #FF6900;
}

.addon-summary .summary-right {
    text-align: right;
}

.addon-summary .summary-right .label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.addon-summary .summary-right .total {
    font-size: 18px;
    font-weight: 700;
    color: #FF6900;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .addon-cards {
        grid-template-columns: 1fr;
    }

    .addon-summary {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .addon-summary .summary-right {
        text-align: center;
    }
}