/* === VARIÁVEIS === */
:root {
    --wq-primary: #1e3a8a;
    --wq-success: #16a34a;
    --wq-danger: #dc2626;
    --wq-whatsapp: #25D366;
}

/* === BOTÃO GRID === */
.wq-btn-grid,
.wq-btn-single {
    background: var(--wq-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.wq-btn-grid {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
    padding: 10px;
}

.wq-btn-grid svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.wq-btn-single {
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wq-single-container {
    margin: 15px 0;
    clear: both;
}

.woocommerce ul.products li.product:hover .wq-btn-grid,
.products .product:hover .wq-btn-grid {
    opacity: 1;
    transform: scale(1);
}

.wq-btn-grid:hover,
.wq-btn-single:hover {
    background: #1e40af;
    transform: scale(1.1);
}

.wq-btn-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.wq-btn-grid.loading,
.wq-btn-single.loading {
    opacity: 0.7;
    cursor: wait;
}

.wq-btn-grid.success,
.wq-btn-single.success {
    background: var(--wq-success);
    animation: pulse 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === MENU/SHORTCODE ICON === */
.wq-shortcode-icon {
    position: relative;
    display: inline-block;
}

.wq-shortcode-icon a,
.wq-cart-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #0071e3;
    position: relative;
}

.wq-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--wq-danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.4s;
    z-index: 1;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* === POPUP === */
.wq-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.wq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.wq-modal {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s;
}

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

/* === HEADER === */
.wq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.wq-header h3 {
    margin: 0;
    font-size: 16px;
    color: #111;
}

.wq-close {
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    Padding-right: 8px;
    Padding-left: 8px;
    Padding-top: 5px;
    Padding-botton: 4px;
}

.wq-close:hover {
    background: var(--wq-danger);
    color: white;
    transform: scale(1.1);
}

/* === ITEMS === */
.wq-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 350px;
}

.wq-empty {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 20px;
    margin: 0;
}

.wq-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    transition: box-shadow 0.2s;
}

.wq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wq-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.wq-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wq-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wq-controls label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.wq-qty {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
}

.wq-notes-toggle {
    background: none;
    border: none;
    color: var(--wq-primary);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-bottom: 6px;
}

.wq-notes-toggle:hover {
    color: #1e40af;
}

.wq-notes {
    width: 100%;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 11px;
    resize: vertical;
    min-height: 40px;
    display: none;
    font-family: inherit;
}

.wq-notes.show {
    display: block;
}

.wq-notes::placeholder {
    color: #9ca3af;
}

.wq-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wq-danger);
    color: white;
    border: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    font-weight: bold;
}

.wq-remove:hover {
    background: #b91c1c;
    transform: scale(1.15);
}

/* === FORM === */
.wq-form {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.wq-field {
    margin-bottom: 12px;
}

.wq-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.wq-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.wq-field input:focus {
    outline: none;
    border-color: var(--wq-primary);
}

.wq-btn-send {
    width: 100%;
    padding: 12px;
    background: var(--wq-whatsapp);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wq-btn-send:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wq-btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === TOAST === */
.wq-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wq-toast.show {
    transform: translateX(0);
}

.wq-toast-success {
    background: var(--wq-success);
}

.wq-toast-error {
    background: var(--wq-danger);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .wq-modal {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: calc(100vw - 40px);
        max-height: 80vh;
        animation: slideUp 0.3s;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    
    .wq-btn-grid {
        width: 32px;
        height: 32px;
    }
    
    .wq-btn-grid svg {
        width: 16px;
        height: 16px;
    }
}

/* === SCROLL CUSTOMIZADO === */
.wq-items::-webkit-scrollbar {
    width: 6px;
}

.wq-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.wq-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.wq-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}