/**
 * Size & Pricing Component
 *
 * Interactive size/pricing cards for product pages.
 * Uses CSS variables from colors-variables.css for theming.
 */

/* ========================================
   Size Pricing Section
   ======================================== */

.product-sizes-pricing h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* ========================================
   Size Pricing Grid
   ======================================== */

.size-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

/* ========================================
   Size Card
   ======================================== */

.size-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.size-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.size-card.selected .size-card-header {
    background: #2980b9;
}

/* ========================================
   Size Card Header
   ======================================== */

.size-card-header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    text-align: center;
}

.size-label {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   Size Pricing Table
   ======================================== */

.size-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.size-pricing-table thead {
    background: #f8f9fa;
}

.size-pricing-table th {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.size-pricing-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.size-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.size-pricing-table tbody tr:hover {
    background: #f0f4ff;
}

.size-pricing-table tbody tr.selected {
    background: #e8f0fe;
    font-weight: 600;
}

.size-card-no-pricing {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* ========================================
   Size Pricing Responsive
   ======================================== */

@media (max-width: 576px) {
    .size-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .size-card-header {
        padding: 10px;
    }

    .size-label {
        font-size: 1rem;
    }

    .size-pricing-table th,
    .size-pricing-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}
