/**
 * Printing Quote Calculator - FULLWIDTH DESKTOP LAYOUT
 * File: assets/css/frontend.css
 * Version: 2.0.0
 */

 :root {
    --pq-primary: #667eea;
    --pq-primary-dark: #5a6fd8;
    --pq-secondary: #764ba2;
    --pq-success: #28a745;
    --pq-danger: #dc3545;
    --pq-warning: #ffc107;
    --pq-info: #17a2b8;
    --pq-light: #f8f9fa;
    --pq-dark: #333;
    --pq-border: #e1e5e9;
    --pq-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --pq-radius: 10px;
    --pq-radius-lg: 16px;
    --pq-transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */

.pq-calculator-fullwidth * {
    box-sizing: border-box;
}

.pq-calculator-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ========================================
   TOP HEADER
   ======================================== */

.pq-top-header {
    background: linear-gradient(135deg, var(--pq-primary) 0%, var(--pq-secondary) 100%);
    color: white;
    padding: 24px 0;
    margin-bottom: 30px;
}

.pq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pq-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pq-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pq-icon {
    font-size: 40px;
    line-height: 1;
}

.pq-header-text h2 {
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.pq-header-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.pq-live-price {
    text-align: right;
}

.pq-price-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.pq-price-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* ========================================
   MAIN LAYOUT - 2 COLUMNS (Desktop)
   ======================================== */

.pq-main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 40px;
}

.pq-form-column {
    min-width: 0;
}

.pq-preview-column {
    position: sticky;
    top: 20px;
    align-self: start;
}

.pq-form-card,
.pq-preview-card,
.pq-catalog-card {
    background: white;
    border-radius: var(--pq-radius);
    padding: 25px;
    box-shadow: var(--pq-shadow);
    margin-bottom: 20px;
}

.pq-form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   FEATURED PRODUCTS - HORIZONTAL LIST
   ======================================== */

.pq-featured-horizontal {
    background: white;
    border-radius: var(--pq-radius);
    padding: 20px;
    box-shadow: var(--pq-shadow);
}

.pq-featured-horizontal h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--pq-dark);
    font-weight: 600;
}

.pq-featured-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.pq-featured-scroll::-webkit-scrollbar {
    width: 6px;
}

.pq-featured-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pq-featured-scroll::-webkit-scrollbar-thumb {
    background: var(--pq-primary);
    border-radius: 10px;
}

.pq-featured-item-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pq-featured-item-horizontal:hover {
    border-color: var(--pq-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.pq-featured-icon {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.pq-featured-content {
    flex: 1;
    min-width: 0;
}

.pq-featured-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pq-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pq-featured-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pq-featured-arrow {
    font-size: 20px;
    color: var(--pq-primary);
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pq-featured-item-horizontal:hover .pq-featured-arrow {
    transform: translateX(4px);
}


/* ========================================
   FORM ELEMENTS
   ======================================== */

.pq-form-group {
    margin-bottom: 24px;
}

.pq-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--pq-dark);
}

.pq-label-icon {
    font-size: 20px;
    line-height: 1;
}

.pq-required {
    color: var(--pq-danger);
    margin-left: 2px;
}

.pq-select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--pq-border);
    border-radius: var(--pq-radius);
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: var(--pq-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.pq-select:focus {
    outline: none;
    border-color: var(--pq-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pq-select:hover {
    border-color: var(--pq-primary);
}

/* ========================================
   INK TYPE PILLS
   ======================================== */

.pq-ink-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pq-pill {
    cursor: pointer;
    display: block;
}

.pq-pill input {
    display: none;
}

.pq-pill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 2px solid var(--pq-border);
    border-radius: var(--pq-radius);
    transition: var(--pq-transition);
    background: white;
    min-height: 100px;
}

.pq-pill:hover .pq-pill-content {
    border-color: var(--pq-primary);
    background: rgba(102, 126, 234, 0.05);
}

.pq-pill input:checked + .pq-pill-content {
    border-color: var(--pq-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
    transform: translateY(-2px);
}

.pq-pill.pq-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pq-pill.pq-disabled .pq-pill-content {
    cursor: not-allowed;
}

.pq-pill-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.pq-pill-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--pq-dark);
}

.pq-pill-price {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ========================================
   SPECS & QUANTITY
   ======================================== */

.pq-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.pq-spec-input label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.pq-spec-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--pq-border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--pq-transition);
}

.pq-spec-input input:focus {
    outline: none;
    border-color: var(--pq-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pq-spec-input input:hover {
    border-color: #ccc;
}

.pq-area-display {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--pq-primary);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.pq-area-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--pq-danger);
    font-weight: 600;
}

.pq-quantity-control label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.pq-qty-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pq-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--pq-light);
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pq-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pq-dark);
    flex-shrink: 0;
}

.pq-qty-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.pq-qty-btn:active {
    transform: scale(0.95);
}

.pq-qty-buttons input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--pq-border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--pq-transition);
}

.pq-qty-buttons input:focus {
    outline: none;
    border-color: var(--pq-primary);
}

.pq-discount-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--pq-success);
    font-weight: 600;
    text-align: center;
}

/* ========================================
   DYNAMIC OPTIONS & FINISHES
   ======================================== */

#pqOptionsContainer,
#pqFinishesContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pq-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--pq-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--pq-transition);
}

.pq-checkbox-item:hover {
    background: var(--pq-light);
    border-color: var(--pq-primary);
}

.pq-checkbox-item input[type="checkbox"],
.pq-checkbox-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--pq-primary);
    flex-shrink: 0;
}

.pq-checkbox-text {
    flex: 1;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pq-checkbox-price {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   PRICE SUMMARY
   ======================================== */

.pq-price-summary {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(32,201,151,0.1));
    border: 2px solid var(--pq-success);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pq-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.pq-vat-note {
    font-size: 11px;
    color: #666;
}

.pq-summary-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--pq-success);
    margin-bottom: 12px;
    line-height: 1;
}

.pq-summary-details {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

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

.pq-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--pq-radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--pq-transition);
    text-decoration: none;
    text-align: center;
}

.pq-btn-primary {
    background: linear-gradient(135deg, var(--pq-primary) 0%, var(--pq-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.pq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    color: white;
}

.pq-btn-primary:active {
    transform: translateY(0);
}

.pq-btn-secondary {
    background: white;
    color: var(--pq-primary);
    border: 2px solid var(--pq-primary);
}

.pq-btn-secondary:hover {
    background: var(--pq-light);
}

.pq-btn-icon {
    font-size: 20px;
    line-height: 1;
}

.pq-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   PREVIEW CARD
   ======================================== */

.pq-preview-card h3,
.pq-catalog-card h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--pq-dark);
    font-weight: 600;
}

.pq-preview-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pq-preview-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-radius: 12px;
    flex-shrink: 0;
}

.pq-preview-info {
    flex: 1;
}

.pq-preview-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.pq-preview-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

.pq-preview-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pq-success);
}

/* ========================================
   CATALOG GRID
   ======================================== */

.pq-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pq-catalog-item {
    border: 2px solid var(--pq-border);
    border-radius: var(--pq-radius);
    padding: 16px;
    text-align: center;
    transition: var(--pq-transition);
    cursor: pointer;
}

.pq-catalog-item:hover {
    border-color: var(--pq-primary);
    background: rgba(102,126,234,0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.pq-catalog-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.pq-catalog-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--pq-dark);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pq-catalog-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--pq-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--pq-transition);
}

.pq-catalog-select:hover {
    background: var(--pq-primary-dark);
    transform: scale(1.05);
}

.pq-catalog-select:active {
    transform: scale(0.95);
}

/* ========================================
   TRUST BADGES
   ======================================== */

.pq-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pq-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.pq-badge-icon {
    font-size: 28px;
}

/* ========================================
   MODAL
   ======================================== */

.pq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pq-modal.pq-active {
    display: flex;
}

.pq-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.pq-modal-container {
    position: relative;
    background: white;
    border-radius: var(--pq-radius-lg);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: pqModalSlideIn 0.3s ease;
}

@keyframes pqModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.pq-modal-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--pq-dark);
}

.pq-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--pq-light);
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    transition: var(--pq-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
}

.pq-modal-close:hover {
    background: #e9ecef;
    color: var(--pq-dark);
    transform: scale(1.1);
}

.pq-modal-form {
    padding: 20px;
}

.pq-modal-summary {
    background: var(--pq-light);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
}

.pq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.pq-form-col label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #666;
    font-weight: 600;
}

.pq-form-col input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--pq-border);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--pq-transition);
}

.pq-form-col input:focus {
    outline: none;
    border-color: var(--pq-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pq-form-group-full {
    margin-bottom: 16px;
}

.pq-form-group-full label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #666;
    font-weight: 600;
}

.pq-form-group-full textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--pq-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: var(--pq-transition);
    min-height: 80px;
}

.pq-form-group-full textarea:focus {
    outline: none;
    border-color: var(--pq-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pq-modal-actions {
    margin-top: 20px;
}

.pq-btn-block {
    width: 100%;
}

/**
 * Material Options Styles - BỔ SUNG VÀO frontend.css
 * Thêm vào cuối file assets/css/frontend.css
 */

/* ========================================
   MATERIAL OPTIONS (Price Matrix)
   ======================================== */

.pq-material-option-group {
    margin-bottom: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border: 2px solid var(--pq-border);
    border-radius: 10px;
    transition: var(--pq-transition);
}

.pq-material-option-group:hover {
    border-color: var(--pq-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
}

.pq-material-option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pq-dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pq-border);
}

.pq-material-option-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
}

.pq-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--pq-primary), var(--pq-secondary));
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pq-material-option-item {
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e1e5e9;
}

.pq-material-option-item:last-child {
    margin-bottom: 0;
}

.pq-material-option-item:hover {
    background: #f8f9fa;
    border-color: var(--pq-primary);
}

.pq-material-option-item input:checked + .pq-checkbox-text {
    color: var(--pq-primary);
    font-weight: 600;
}

.pq-material-option-item input[type="radio"]:checked {
    accent-color: var(--pq-primary);
}

/* Separator between material options and other sections */
#pqMaterialOptionsGroup {
    position: relative;
}

#pqMaterialOptionsGroup::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--pq-primary), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Enhanced checkbox/radio items */
.pq-checkbox-item {
    position: relative;
    overflow: hidden;
}

.pq-checkbox-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--pq-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pq-checkbox-item:has(input:checked)::before {
    transform: scaleY(1);
}

/* Loading state for material options */
.pq-material-options-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.pq-material-options-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--pq-primary);
    border-radius: 50%;
    animation: pqSpin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Price comparison indicator */
.pq-price-compare {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #28a745;
    margin-left: 8px;
}

.pq-price-compare::before {
    content: '↓';
    font-weight: bold;
}

/* Material Options Styles */
.pq-material-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pq-material-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pq-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 14px;
}

.pq-option-icon {
    font-size: 18px;
}

.pq-option-name {
    flex: 1;
}

.pq-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pq-option-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.pq-option-pill:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.pq-option-pill.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pq-option-pill input[type="radio"] {
    display: none;
}

.pq-pill-text {
    line-height: 1;
}

/* Product Options Styles */
#pqProductOptionsGroup {
    margin-top: 20px;
}

.pq-product-option-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pq-product-option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pq-product-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 14px;
}

.pq-product-option-label .pq-option-icon {
    font-size: 18px;
}

.pq-product-option-label .pq-option-name {
    flex: 1;
}

.pq-product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pq-option-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.pq-option-pill:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.pq-option-pill.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pq-option-pill input[type="radio"] {
    display: none;
}

.pq-pill-text {
    line-height: 1;
}
/* ==========================================
   COMPACT MODE
   ========================================== */

   .pq-compact-mode {
    max-width: 800px;
    margin: 0 auto;
}

.pq-compact-mode .pq-container {
    padding: 0;
}

.pq-compact-mode .pq-top-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.pq-compact-mode .pq-main-layout {
    display: block;
}

.pq-compact-mode .pq-form-column {
    max-width: 100%;
}

.pq-compact-mode .pq-form-card {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pq-compact-mode .pq-header-content {
    justify-content: center;
    text-align: center;
}

.pq-compact-mode .pq-header-left {
    flex-direction: column;
    align-items: center;
}

.pq-compact-mode .pq-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.pq-compact-mode .pq-header-text h2 {
    font-size: 24px;
}

.pq-compact-mode .pq-header-text p {
    font-size: 14px;
}

/* Hide live price in compact mode */
.pq-compact-mode .pq-live-price {
    display: none !important;
}

/* Tighter spacing for compact mode */
.pq-compact-mode .pq-form-group {
    margin-bottom: 20px;
}

.pq-compact-mode .pq-trust-badges {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* ========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .pq-main-layout {
        grid-template-columns: 1fr;
    }
    
    .pq-preview-column {
        position: relative;
        top: auto;
    }
    
    .pq-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   ======================================== */

@media (max-width: 768px) {
    .pq-top-header {
        padding: 18px 0;
    }
    
    .pq-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pq-header-left {
        flex-direction: column;
    }
    
    .pq-header-text h2 {
        font-size: 22px;
    }
    
    .pq-form-card,
    .pq-preview-card,
    .pq-catalog-card {
        padding: 20px;
    }
    
    .pq-ink-pills {
        gap: 8px;
    }
    
    .pq-pill-content {
        min-height: 90px;
    }
    
    .pq-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .pq-actions {
        grid-template-columns: 1fr;
    }
    
    .pq-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pq-form-row {
        grid-template-columns: 1fr;
    }
    .pq-featured-scroll {
        max-height: 300px;
    }
    
    .pq-featured-item-horizontal {
        padding: 10px;
    }
    
    .pq-featured-icon {
        font-size: 28px;
        width: 44px;
        height: 44px;
    }
    
    .pq-featured-title {
        font-size: 13px;
    }
    
    .pq-featured-desc {
        font-size: 11px;
    }
        .pq-material-option-group {
        padding: 12px;
    }
    
    .pq-material-option-label {
        font-size: 13px;
    }
    
    .pq-option-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    .pq-option-values {
        gap: 8px;
    }

    .pq-option-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    .pq-product-option-values {
        gap: 8px;
    }

    .pq-option-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    /* reponsive compact mode*/
    .pq-compact-mode {
        max-width: 100%;
    }
    
    .pq-compact-mode .pq-top-header {
        border-radius: 0;
    }
    
    .pq-compact-mode .pq-form-card {
        border-radius: 0;
    }
    
    .pq-compact-mode .pq-icon {
        font-size: 36px;
    }
    
    .pq-compact-mode .pq-header-text h2 {
        font-size: 20px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */

@media (max-width: 480px) {
    .pq-container {
        padding: 0 10px;
    }
    
    .pq-icon {
        font-size: 32px;
    }
    
    .pq-header-text h2 {
        font-size: 18px;
    }
    
    .pq-summary-price {
        font-size: 28px;
    }
    
    .pq-trust-badges {
        gap: 8px;
    }
    
    .pq-badge {
        font-size: 11px;
    }
    
    .pq-badge-icon {
        font-size: 24px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.pq-hidden {
    display: none !important;
}

.pq-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.pq-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.pq-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--pq-primary);
    border-radius: 50%;
    animation: pqSpin 1s linear infinite;
}

@keyframes pqSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}