/**
 * Impressm Quote System - Quote List Template Styles
 * Modular CSS organization for quote-list.php template
 */

/* ===== BASE & LAYOUT ===== */
.impressm-quote-container {
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quote-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.quote-description {
    color: #666;
    font-size: 16px;
}

/* ===== QUOTE ITEMS TABLE ===== */
.quote-items-table {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    margin-bottom: 30px;
}

.table-body {
    padding: 0;
}

.quote-row {
    display: grid;
    grid-template-columns: 2fr 120px 100px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.quote-row:last-child {
    border-bottom: none;
}

/* ===== PRODUCT COMPONENTS ===== */
.product-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.product-details {
    flex: 1;
}

.product-name {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.product-name a {
    color: #333;
    text-decoration: none;
}

.product-name a:hover {
    color: #0073aa;
}

.product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== CLEAN PRODUCT SPECIFICATIONS LAYOUT (Based on Original Theme) ===== */
.product-specs-clean {
    margin-top: 5px;
}

/* QuickShip badge matching original theme */
.quickship-badge {
    color: #2196F3;
    font-size: 12px;
    font-family: inherit;
    letter-spacing: 0.12px;
    font-weight: bold;
    display: inline-block;
    border-radius: 28px;
    background-color: #f5f5f5;
    padding: 5px 12px;
    margin-bottom: 8px;
    text-transform: none;
}

/* Available Options badge - Green styling with checkmark */
.available-option-badge {
    color: #2e7d32;
    background-color: #e8f5e8;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    display: inline-block;
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 4px;
    margin-right: 4px;
    text-transform: none;
    border-left: 3px solid #4caf50;
}

/* Flexbox layout matching original theme structure */
.specs-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-top: 3px;
}

/* Column widths matching original theme */
.spec-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 5px;
    padding-right: 30px;
    margin-bottom: 25px;
    max-width: 100%;
    width: 20%;
    vertical-align: top;
}

/* Last column (Options) gets more width */
.spec-column:last-child {
    margin-right: 0;
    width: 40%;
    padding-right: 0;
}

/* Labels matching original theme typography */
.spec-label {
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: #6b7280; /* battleship-grey equivalent */
    margin-bottom: 9px;
}

/* Values container */
.spec-values {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Individual spec values */
.spec-value {
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.4;
    color: #1f2937; /* rich-black equivalent */
    margin-top: 0;
    margin-bottom: 3px;
}

.spec-value:first-child {
    font-weight: bold;
}

.spec-value:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments matching original theme */
@media (max-width: 1024px) {
    .spec-column {
        margin-bottom: 15px;
    }
    
    .spec-label {
        font-size: 12px;
    }
    
    .spec-value {
        font-size: 12px;
    }
    
    .spec-value:first-child {
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .specs-columns {
        flex-direction: column;
        justify-content: space-between;
    }
    
    .spec-column {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding-right: 0;
        margin-bottom: 7px;
    }
    
    .spec-column:last-child {
        width: 100%;
    }
    
    .spec-label {
        min-width: 30%;
        max-width: 30%;
        padding-right: 15px;
        margin-bottom: 0;
    }
    
    .spec-values {
        align-items: flex-end;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .spec-column {
        margin-bottom: 7px;
    }
}

/* ===== LEGACY TECHNICAL SPECS (kept for backward compatibility) ===== */
.technical-specs {
    margin-bottom: 10px;
}

.specs-label {
    color: #333;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spec-item {
    background: #e3f2fd;
    color: #1565c0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid #bbdefb;
}

.spec-item strong {
    font-weight: 600;
}

.spec-tag-item {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.finish-spec {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc02;
}

.finish-tag {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

.fabric-spec {
    background: #f1f8e9;
    color: #33691e;
    border: 1px solid #8bc34a;
}

.fabric-tag {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

.option-spec {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.quickship-spec {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffc107;
}

.quickship-detail-spec {
    background: #fafafa;
    color: #616161;
    border: 1px solid #e0e0e0;
}

.size-spec {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 30px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    border-radius: 28px;
    height: 55px;
    -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.3);
    box-shadow: inset 0 3px 6px rgba(0,0,0,.3);
    margin-left: 16px;
    text-align: center;
    font-size: 20px;
    padding: 10px;
    max-width: 141px;
    border: none;
}

.qty-input:focus {
    border: none;
    outline: none;
}

/* ===== PRICE INFORMATION ===== */
.price-info {
    text-align: right;
}

.unit-price {
    font-size: 14px;
    color: #666;
}

.total-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.price-request {
    color: var(--wp--preset--color--primary);
    font-size: 14px;
}

/* ===== ACTION BUTTONS ===== */
.remove-item-btn {
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
}

.remove-item-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    pointer-events: none;
}

.remove-item-btn:hover {
    background: #e74c3c;
    color: white;
}

.remove-item-btn:hover svg {
    fill: white;
}

/* ===== CUSTOMER INFO SECTION ===== */
.customer-info-section {
    background: white;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    margin-bottom: 30px;
}

.customer-info-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.form-description {
    color: #666;
    margin-bottom: 25px;
}

/* ===== FORM COMPONENTS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ===== BUTTON STYLES ===== */
.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005177;
}

/* ===== CONTACT DETAILS FORM ===== */
.contact-details-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
}

.contact-details-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: left;
}

.quote-cart__form {
    width: 100%;
}

.quote-cart__form-upper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.quote-cart__form-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-cart__form-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.quote-cart__form-bottom-part {
    display: grid;
    gap: 20px;
}

.quote-cart__form-bottom-right {
    grid-template-columns: 1fr;
}

.quote-cart__form-bottom-left {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.quote-cart__form-bottom-bottom {
    grid-template-columns: 1fr;
    margin-top: 20px;
}

.quote-cart__form-input {
    display: flex;
    flex-direction: column;
}

.quote-cart__form-input-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.quote-cart__form-input input,
.quote-cart__form-input select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.quote-cart__form-input input:focus,
.quote-cart__form-input select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quote-cart__form-input input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.quote-cart__form-input--select select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.field-error {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #dc2626;
    min-height: 16px;
}

.contact-form-actions {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.request-quote-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 160px;
}

.request-quote-btn:hover {
    background: #1d4ed8;
}

.request-quote-btn:active {
    background: #1e40af;
}

/* ===== QUOTE LIST PAGE COMPONENTS ===== */
.quote-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.quote-items-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.quote-items-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.quote-items-count {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

.quote-items-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.quote-items-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.quote-items-table tr:hover {
    background: #f8f9fa;
}

.quote-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quote-item-image-large {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.quote-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.quote-item-specs {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.quote-item-specs div {
    margin-bottom: 4px;
}

.quote-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.quote-actions {
    text-align: center;
}

.quote-remove-btn {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.quote-remove-btn:hover {
    background: #c82333;
}

/* ===== CUSTOMER INFO SECTION OVERRIDE ===== */
.customer-info-section {
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    padding: 30px;
    margin-bottom: 30px;
}

.customer-info-header {
    text-align: center;
    margin-bottom: 30px;
}

.customer-info-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.customer-info-header p {
    color: #6c757d;
    margin: 8px 0 0 0;
}

.quote-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.quote-submit-section {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

#clear-quote-btn,
#submit-quote-btn {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 40px;
    font-family: var(--wp--preset--font-family--adobe-clean);
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-quote-btn {
    background: #e7e7e7;
    color: #000;
}

#submit-quote-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== SUCCESS MESSAGE ===== */
#quote-success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    display: none;
}

#quote-success-message h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

#quote-success-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* ===== EMPTY & SUCCESS STATES ===== */
.quote-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #6c757d;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.quote-empty-state h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #495057;
}

.quote-empty-state p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    margin: 0 0 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.quote-success-message {
    text-align: center;
    padding: 40px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.quote-success-message h3 {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
    .impressm-quote-container {
        padding: 15px;
        max-width: 100%;
    }

    .quote-items-table {
        font-size: 14px;
    }

    .quote-item-image-large {
        width: 70px;
        height: 70px;
    }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
    .impressm-quote-container {
        padding: 10px;
    }

    .quote-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Redesign table for mobile - card layout */
    .quote-items-table {
        display: block;
    }

    .quote-items-table th {
        display: none; /* Hide table headers on mobile */
    }

    .quote-items-table td {
        display: block;
        padding: 8px 15px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .quote-items-table tr {
        display: block;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 4px;
        margin-bottom: 15px;
        padding: 0;
        border: 1px solid #e7e7e7;
    }

    .quote-item-product {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 10px;
    }

    .quote-item-image-large {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .quote-item-info {
        flex: 1;
        min-width: 0;
    }

    .quote-item-info h4 {
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    /* Mobile quantity controls */
    .quote-quantity-controls {
        justify-content: flex-start;
        margin: 10px 0;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        font-weight: bold;
    }

    input.qty-input {
        font-size: 16px;
        text-align: center;
        margin-bottom: 0 !important;
        height: 50px;
        max-width: 110px;
    }

    .quote-remove-btn {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        font-size: 14px;
    }

    /* Mobile form improvements */
    .quote-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
    }

    /* Clean specs mobile adjustments */
    .specs-columns {
        flex-direction: column;
        gap: 12px;
    }
    
    .spec-column {
        min-width: auto;
    }
}

/* Small mobile styles (max-width: 480px) */
@media (max-width: 480px) {
    .impressm-quote-container {
        padding: 8px;
    }

    .quote-page-title {
        font-size: 22px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .quote-items-section {
        margin-bottom: 20px;
    }

    .quote-items-header {
        padding: 15px;
    }

    .quote-items-header h2 {
        font-size: 18px;
    }

    .quote-items-count {
        font-size: 14px;
    }

    /* Ultra-mobile table adjustments */
    .quote-items-table tr {
        margin-bottom: 12px;
        padding: 0;
    }

    .quote-items-table td {
        padding: 6px 12px;
    }

    .quote-item-product {
        gap: 10px;
    }

    .quote-item-image-large {
        width: 50px;
        height: 50px;
    }

    .quote-item-info h4 {
        font-size: 14px;
    }

    /* Customer info improvements */
    .customer-info-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .customer-info-header h2 {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    /* Mobile-optimized buttons */
    #submit-quote-btn {
        width: 100%;
        font-size: 16px;
        padding: 14px 20px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .quote-items-table {
        display: block !important;
    }

    .quote-row {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        background: white !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .col-product,
    .col-quantity,
    .col-actions {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .col-product {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .col-quantity::before {
        content: "Quantity: ";
        font-weight: 600;
        color: #333;
        display: block;
        margin-bottom: 5px;
    }

    .col-actions::before {
        content: "Actions: ";
        font-weight: 600;
        color: #333;
        display: block;
        margin-bottom: 5px;
    }

    .impressm-quote-container {
        padding: 10px !important;
    }

    .quote-items-table {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    /* Improved specs display for mobile */
    .specs-list {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        gap: 8px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }

    .spec-item {
        padding: 6px 8px !important;
        font-size: 10px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }

    /* Better mobile spec colors and spacing */
    .finish-spec,
    .fabric-spec,
    .option-spec,
    .quickship-spec,
    .quickship-detail-spec {
        margin-bottom: 4px !important;
    }

    .technical-specs {
        margin-bottom: 15px !important;
    }

    .specs-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .product-info {
        flex-direction: row !important;
        text-align: left !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .product-image {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    .product-image img {
        width: 60px !important;
        height: 60px !important;
        object-fit: contain !important;
    }

    .product-details {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .product-name {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }

    .quantity-controls {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .qty-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border: 1px solid #ddd !important;
        background: #f8f9fa !important;
        cursor: pointer !important;
    }

    input.qty-input {
        text-align: center !important;
        font-size: 16px !important;
        border: 1px solid #ddd !important;
        margin: 0 !important;
    }

    .remove-item-btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 14px !important;
        background: #dc3545 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .form-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }

    .contact-details-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .quote-cart__form-upper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-cart__form-bottom-left {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-actions {
        text-align: center;
    }
    
    .request-quote-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .quote-row {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    .specs-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    .spec-item {
        font-size: 9px !important;
        padding: 4px 6px !important;
        max-width: none !important;
        min-height: 24px !important;
        border-radius: 3px !important;
    }

    .product-info {
        gap: 8px !important;
    }

    .product-image img {
        width: 50px !important;
        height: 50px !important;
    }

    .product-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }

    .quantity-controls {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .qty-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .qty-input {
        font-size: 14px !important;
        max-width: 90px;
        margin-left: 8px;
    }

    .remove-item-btn {
        padding: 8px !important;
        font-size: 12px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .impressm-quote-container {
        padding: 8px !important;
    }

    .contact-details-container {
        padding: 15px;
    }
    
    .contact-details-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .quote-cart__form-input input,
    .quote-cart__form-input select {
        padding: 10px 12px;
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
