/* ============================================
   SINGLE PRODUCT BUTTON - CRITICAL FIX
   ============================================ */

.sqs-single-quote-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999 !important;
    position: relative !important;
}

.sqs-quote-button-single {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.sqs-quote-button-single:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3) !important;
}



/* Toast */
.sqs-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #003366;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
}

.sqs-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Bounce animation */
@keyframes sqsBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(0.8); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.sqs-bounce {
    animation: sqsBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   HEADER BUCKET ALIGNMENT & DESIGN FIX
   ============================================ */

.sqs-quote-bucket-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Header ki default height catch karne k liye */
}

.sqs-quote-bucket-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 8px;
    text-decoration: none !important;
    color: #ffffff; /* TM Surgical theme k mutabiq text color white */
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    padding: 6px 4px;
    transition: opacity 0.2s ease-in-out;
}

.sqs-quote-bucket-icon:hover {
    opacity: 0.85;
    text-decoration: none !important;
    color: #ff3366 !important; /* Agar pink/red accent hover chahiye to */
}

/* SVG Icon Precise Centering */
.sqs-quote-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.sqs-quote-icon-svg svg {
    width: 25px;   /* Search icon k dimensions k barabar sharp sizing */
    height: 25px;
    display: block;
}

/* Modern Header Badge - Top Right Cornered Floating style */
.sqs-quote-count {
    background: #ff3366; /* Image me bag ka jo red/pink accent color h */
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    right: -12px; /* Text label k exact corner pr set hoga */
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Item Animation */
.sqs-quote-count.has-items {
    animation: sqsPop 0.3s ease-out;
}

@keyframes sqsPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.sqs-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #003366;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
}

.sqs-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   QUOTE PAGE STYLES
   ============================================ */

.sqs-quote-system {
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sqs-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #003366;
}

.sqs-quote-header h2 {
    color: #003366;
    margin: 0 0 5px;
    font-size: 28px;
}

.sqs-quote-header p {
    color: #666;
    margin: 0;
}

/* Quote Table */
.sqs-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.sqs-quote-table thead th {
    background: #003366;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.sqs-quote-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.sqs-quote-table tbody tr:hover {
    background: #f8f9fa;
}

.sqs-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sqs-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.sqs-product-name {
    font-weight: 500;
    color: #333;
}

.sqs-quantity-input {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.sqs-quantity-input:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.sqs-remove-item {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.sqs-remove-item:hover {
    background: #dc3545;
    color: white;
}

/* Quote Form */
.sqs-quote-form-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #003366;
}

.sqs-quote-form-container h3 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 22px;
}

.sqs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sqs-form-group {
    display: flex;
    flex-direction: column;
}

.sqs-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.sqs-form-group input[type="text"],
.sqs-form-group input[type="email"],
.sqs-form-group input[type="tel"],
.sqs-form-group select,
.sqs-form-group textarea {
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.sqs-form-group input:focus,
.sqs-form-group select:focus,
.sqs-form-group textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.sqs-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sqs-radio-group {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}

.sqs-radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.full-width {
    grid-column: 1 / -1;
}

.sqs-form-actions {
    margin-top: 30px;
    text-align: center;
}

.sqs-submit-button {
    border: none;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sqs-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.sqs-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sqs-form-message {
    margin-top: 20px;
}

.sqs-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    animation: slideIn 0.3s ease;
}

.sqs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    animation: slideIn 0.3s ease;
}

/* Quote Button Styles (Product Pages) */
.sqs-quote-button,
a.sqs-quote-button {
    color: white !important;
	background-color: #de1144 !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s !important;
    border: none !important;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.sqs-quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Empty Quote State */
.sqs-empty-quote {
    text-align: center;
    padding: 60px 30px;
}

.sqs-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.sqs-empty-quote h3 {
    color: #003366;
    margin-bottom: 10px;
}

.sqs-empty-quote p {
    color: #666;
    margin-bottom: 25px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SINGLE PRODUCT PAGE FIXES
   ============================================ */

/* Hide WooCommerce Add to Cart on single product */
.single-product .cart,
.single-product form.cart,
.single-product button.single_add_to_cart_button,
.single-product .quantity {
    display: none !important;
}

/* Custom Quote Button on Single Product */
.sqs-single-product-quote {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sqs-quote-button-wrapper {
    margin-bottom: 10px;
}

.sqs-quote-button {
	background-color: #de1144 !important;
}

.sqs-single-product-quote .sqs-quote-button {
    display: inline-block;
    width: auto;
    min-width: 200px;
    text-align: center;
    font-size: 16px !important;
    padding: 15px 30px !important;
}

.sqs-quote-info {
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Hide WooCommerce messages related to cart */
.woocommerce-message a.wc-forward {
    display: none !important;
}

/* Hide cart icon in menu if any */
.ast-site-header-cart,
.ast-header-woo-cart {
    display: none !important;
}

/* Disable price display on products if needed */
/* Uncomment below to hide prices completely */
/*
.single-product .price,
.product .price {
    display: none !important;
}
*/

/* Quote message styling */
.woocommerce-message {
    border-left-color: #003366 !important;
}

.woocommerce-message::before {
    color: #003366 !important;
}

/* ============================================
   ASTRA HEADER INTEGRATION
   ============================================ */

/* Ensure the icon sits nicely in the Astra header */
.ast-primary-header-bar .sqs-quote-bucket-wrapper,
.ast-mobile-header-wrap .sqs-quote-bucket-wrapper {
    display: inline-flex;
}

.ast-primary-header-bar .sqs-quote-bucket-icon,
.ast-mobile-header-wrap .sqs-quote-bucket-icon {
    margin-left: 15px;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .sqs-quote-bucket-icon {
        padding: 6px 12px;
        gap: 5px;
    }
    
    .sqs-quote-label {
        font-size: 12px;
    }
    
    .sqs-quote-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sqs-quote-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .sqs-form-row {
        grid-template-columns: 1fr;
    }
    
    .sqs-product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .sqs-quote-table {
        font-size: 14px;
    }
    
    .sqs-submit-button {
        width: 100%;
        padding: 15px;
    }
}